commit editor changes to db
This commit is contained in:
parent
88ed4d9886
commit
0d03cd67d4
@ -231,6 +231,8 @@ def editors():
|
|||||||
user = Editor(authority = received[authority],
|
user = Editor(authority = received[authority],
|
||||||
username = received[username],
|
username = received[username],
|
||||||
password = received[password])
|
password = received[password])
|
||||||
|
db.session.add(user)
|
||||||
|
db.session.commit()
|
||||||
return user
|
return user
|
||||||
else:
|
else:
|
||||||
return "Bad Request"
|
return "Bad Request"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user