Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,10 @@ def login_auth(username, password):
|
|
68 |
log_login(username)
|
69 |
|
70 |
#Set the global logged_in_user variable. This used in the append_to_at_qalog function to track what user asked the question
|
71 |
-
global logged_in_user
|
|
|
|
|
|
|
72 |
logged_in_user = username
|
73 |
|
74 |
return True
|
|
|
68 |
log_login(username)
|
69 |
|
70 |
#Set the global logged_in_user variable. This used in the append_to_at_qalog function to track what user asked the question
|
71 |
+
global logged_in_user,user_user_role, user_output_format, user_school
|
72 |
+
user_user_role = user_details.get('user_role')
|
73 |
+
user_output_format = user_details.get('output_format')
|
74 |
+
user_school = user_details.get('school_name', [None])[0]
|
75 |
logged_in_user = username
|
76 |
|
77 |
return True
|