add and resolve todos
This commit is contained in:
parent
7aa0f8b35d
commit
779aa33a4a
@ -46,7 +46,6 @@ class SessionController(WebpageController):
|
|||||||
if data["user"] in userlist:
|
if data["user"] in userlist:
|
||||||
user = userlist[data["user"]]
|
user = userlist[data["user"]]
|
||||||
if user.is_enabled() and user.password.is_valid(data["password"]):
|
if user.is_enabled() and user.password.is_valid(data["password"]):
|
||||||
# TODO evaluate password force_change and redirect to password change
|
|
||||||
key = SessionStorage.getSharedInstance().startSession({"user": user.name})
|
key = SessionStorage.getSharedInstance().startSession({"user": user.name})
|
||||||
cookie = SimpleCookie()
|
cookie = SimpleCookie()
|
||||||
cookie["owrx-session"] = key
|
cookie["owrx-session"] = key
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
from owrx.form import Input
|
from owrx.form import Input
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: generalize
|
||||||
|
# TODO: cachebuster
|
||||||
class AvatarInput(Input):
|
class AvatarInput(Input):
|
||||||
def render_input(self, value):
|
def render_input(self, value):
|
||||||
return """
|
return """
|
||||||
|
Loading…
Reference in New Issue
Block a user