-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.py
More file actions
27 lines (21 loc) · 679 Bytes
/
user.py
File metadata and controls
27 lines (21 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from werkzeug.security import check_password_hash
class User:
def __init__(self,username,name,dp_url,notification_status,notification_token):
self.username = username
self.name = name
self.dp_url = dp_url
self.notification_status = notification_status
self.notification_token = notification_token
@staticmethod
def is_authenticated(self):
return True
@staticmethod
def is_active(self):
return True
@staticmethod
def is_anonymous(self):
return False
def get_id(self):
return self.username
def check_password(self,password_input):
return True