summaryrefslogtreecommitdiffstats
path: root/accounts/models.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2016-10-04 02:05:21 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2016-10-04 02:05:21 +0200
commit78f339ed3e1e7a058912cb9e10a055a9ed7cd7dc (patch)
tree01faed76943283c69bb1daadae9e33873f2e2ba0 /accounts/models.py
parentd29d7eebc3bbbbe2bb019ddb32355d62658e5b8d (diff)
downloadweb-78f339ed3e1e7a058912cb9e10a055a9ed7cd7dc.tar.gz
web-78f339ed3e1e7a058912cb9e10a055a9ed7cd7dc.tar.bz2
web-78f339ed3e1e7a058912cb9e10a055a9ed7cd7dc.zip
backend/user: Add uidNumber
Diffstat (limited to 'accounts/models.py')
-rw-r--r--accounts/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/accounts/models.py b/accounts/models.py
index 8f1b541..82dab45 100644
--- a/accounts/models.py
+++ b/accounts/models.py
@@ -12,13 +12,14 @@ class Account(UserMixin):
"""
_ready = False
- def __init__(self, uid, mail, services=None, password=None):
+ def __init__(self, uid, mail, services=None, password=None, uidNumber=None):
self.uid = uid.encode('utf8') if isinstance(uid, unicode) else uid
self.services = list() if services is None else services
self.password = password.encode('utf8') if isinstance(password, unicode) else password
self.new_password_root = None
self.new_password_services = {}
self.attributes = {}
+ self.uidNumber = uidNumber
self._set_attribute('mail', mail)
self._ready = True