[Docs] Add docstring to User.active_sessions
This commit is contained in:
parent
e45726fd7c
commit
2c01939ef5
@ -229,6 +229,9 @@ class User(db.Model, UserMixin):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def active_sessions(self):
|
def active_sessions(self):
|
||||||
|
"""The list of active sessions of this user
|
||||||
|
"""
|
||||||
|
|
||||||
return cache.get(self.session_list_key) or []
|
return cache.get(self.session_list_key) or []
|
||||||
|
|
||||||
@active_sessions.setter
|
@active_sessions.setter
|
||||||
|
Loading…
Reference in New Issue
Block a user