mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Fix stack thrown on page refresh after clean db
This commit is contained in:
parent
77bbde149a
commit
3c666e5702
@ -32,14 +32,18 @@ class PublicHandler(BaseHandler):
|
||||
|
||||
error = bleach.clean(self.get_argument("error", "Invalid Login!"))
|
||||
error_msg = bleach.clean(self.get_argument("error_msg", ""))
|
||||
|
||||
page_data = {
|
||||
"version": self.helper.get_version_string(),
|
||||
"error": error,
|
||||
"lang": self.helper.get_setting("language"),
|
||||
"lang_page": self.helper.get_lang_page(self.helper.get_setting("language")),
|
||||
"query": "",
|
||||
}
|
||||
try:
|
||||
page_data = {
|
||||
"version": self.helper.get_version_string(),
|
||||
"error": error,
|
||||
"lang": self.helper.get_setting("language"),
|
||||
"lang_page": self.helper.get_lang_page(
|
||||
self.helper.get_setting("language")
|
||||
),
|
||||
"query": "",
|
||||
}
|
||||
except:
|
||||
self.redirect("/public/login.html")
|
||||
if self.request.query:
|
||||
page_data["query"] = self.request.query
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user