Add user email to the userinfo response (#1862)

We are planning to display the user's email address in the front end.

 #1830
This commit is contained in:
bmccandless
2020-09-23 11:46:56 -07:00
committed by GitHub
parent a817a94eec
commit 3e2d7174fd
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -308,7 +308,8 @@ class AppConfig(object):
userinfo["userinfo"] = {
"is_authenticated": auth.is_user_authenticated(),
"username": auth.get_user_name(),
"user_id": auth.get_user_id()
"user_id": auth.get_user_id(),
"email": auth.get_user_email()
}
return userinfo
else: