Browse Source

Closes #125: Ensure auth after email change

Bastien Sevajol (Algoo) 9 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
         if self._user and user.user_id==self._user.user_id:
53
         if self._user and user.user_id==self._user.user_id:
54
             # this is required for the session to keep on being up-to-date
54
             # this is required for the session to keep on being up-to-date
55
             tg.request.identity['repoze.who.userid'] = email
55
             tg.request.identity['repoze.who.userid'] = email
56
+            tg.auth_force_login(email)
56
 
57
 
57
     def user_with_email_exists(self, email: str):
58
     def user_with_email_exists(self, email: str):
58
         try:
59
         try: