summaryrefslogtreecommitdiffstats
path: root/ogcp/models.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-12-01 09:15:51 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2021-12-08 12:10:38 +0100
commita5681a4b850b198107d025213c5c8d26cd5634d2 (patch)
tree93f875c2b3ff79f2e0b7a4ed46550ccbbc2264c0 /ogcp/models.py
parentf70d90ba32a66a67dfe6f19dd23de007bacb1a8d (diff)
Add multi user support
It is inspired by the following example: https://github.com/maxcountryman/flask-login/blob/c760c0ef7ccc95d49b4693200245a4f2b148d41b/README.md#usage
Diffstat (limited to 'ogcp/models.py')
-rw-r--r--ogcp/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ogcp/models.py b/ogcp/models.py
index 943ed94..9ad40db 100644
--- a/ogcp/models.py
+++ b/ogcp/models.py
@@ -8,5 +8,5 @@
from flask_login import UserMixin
class User(UserMixin):
- def get_id(self):
- return 1
+ def __init__(self, username):
+ self.id = username