create initial user

pull/5/head
Mustafa Yontar 4 years ago
parent a5e3dfbae8
commit 77641aa538
  1. 2
      models/Union.py

@ -27,5 +27,5 @@ class Union(Document):
user.union = self
password = choices(printable, k=10)
user.password = generate_password_hash(password)
# TODO: send mail or etc
# TODO: send password via mail or sms or nothing
user.save()

Loading…
Cancel
Save