Browse Source

Closes #125: Ensure auth after email change

Bastien Sevajol (Algoo) 8 years ago
parent
commit
6d4dc006e5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tracim/tracim/lib/user.py

+ 1 - 0
tracim/tracim/lib/user.py View File

@@ -53,6 +53,7 @@ class UserApi(object):
53 53
         if self._user and user.user_id==self._user.user_id:
54 54
             # this is required for the session to keep on being up-to-date
55 55
             tg.request.identity['repoze.who.userid'] = email
56
+            tg.auth_force_login(email)
56 57
 
57 58
     def user_with_email_exists(self, email: str):
58 59
         try: