Skip to content

Commit fd364a9

Browse files
committed
fix(welcome): 🐞 ensuring UUID token in cookies is string
1 parent 73ae72c commit fd364a9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

mytral/blueprints/auth_uri_space.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def signup():
162162

163163
# log user in - store user_id (UUID) not username
164164
flask.session[COOKIE_USER] = user_id
165-
flask.session[COOKIE_TOKEN] = uuid.uuid4()
165+
flask.session[COOKIE_TOKEN] = str(uuid.uuid4())
166166
# a fresh, explicit login re-enables auto-login for the next boot
167167
flask.session.pop(COOKIE_AUTO_LOGIN_SUPPRESSED, None)
168168

mytral/commons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# main applications dataset name
2727
DATASET_NAME_MAIN = "lifelong"
2828

29-
# default user name (desktop app installation)
29+
# default user name (tests, development) - IMPROVE: refactor to "athlete"
3030
DEFAULT_USER_NAME = "dvorka"
3131

3232
# default user auto-created on the first DESKTOP boot when no user exists yet

0 commit comments

Comments
 (0)