mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Updated flask-login to version 0.3.2
This commit is contained in:
@@ -17,14 +17,16 @@ class User(UserMixin):
|
||||
def get_id(self):
|
||||
return self.id
|
||||
|
||||
@property
|
||||
def is_active(self):
|
||||
return self.state == 'active'
|
||||
|
||||
@property
|
||||
def is_authenticated(self):
|
||||
# To handle remember me token renewal
|
||||
if not login_fresh():
|
||||
return False
|
||||
return super(User, self).is_authenticated()
|
||||
return super(User, self).is_authenticated
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
|
||||
Reference in New Issue
Block a user