Skip to content

Commit

Permalink
new unset of session
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jan 13, 2016
1 parent cf8c25e commit fbc95c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/appier_extras/parts/admin/models/account.py
Expand Up @@ -351,7 +351,9 @@ def encrypt(self, value):
cls = self.__class__
return cls.generate(value)

def _set_session(self):
def _set_session(self, unset = True):
cls = self.__class__
if unset: cls._unset_session()
self.session["username"] = self.username
self.session["email"] = self.email
self.session["type"] = self.type_s()
Expand Down

0 comments on commit fbc95c7

Please sign in to comment.