[WIP] added endpoint and dao to create invites for users.

Droped token as later code to send email invite can generate
timebased url to send to user. That can then be checked
against configurable time threshold for expiry. Therefore
no need to store a token.
This commit is contained in:
Adam Shimali
2016-02-24 14:01:19 +00:00
parent fb0e17a7db
commit e6fe10cbdc
10 changed files with 164 additions and 13 deletions

View File

@@ -0,0 +1,6 @@
from app import db
def save_invited_user(invited_user):
db.session.add(invited_user)
db.session.commit()