[fix] add empty install function for userController, fix wrong indention
This commit is contained in:
parent
d0674e8876
commit
f9d9494a36
|
@ -33,6 +33,10 @@ def _generate_password_reset(user):
|
|||
return reset
|
||||
|
||||
|
||||
def install():
|
||||
pass
|
||||
|
||||
|
||||
def login_user(username, password):
|
||||
logger.info("login user {{ {} }}".format(username))
|
||||
|
||||
|
@ -183,8 +187,8 @@ def delete_user(user: User):
|
|||
db.session.commit()
|
||||
try:
|
||||
# Delete the user
|
||||
db.session.delete(user)
|
||||
db.session.commit()
|
||||
db.session.delete(user)
|
||||
db.session.commit()
|
||||
except exc.IntegrityError:
|
||||
logger.error("Delete of user failed, there might be ForeignKey contraits from disabled plugins", exec_info=True)
|
||||
# Remove at least all personal data
|
||||
|
@ -197,8 +201,6 @@ def delete_user(user: User):
|
|||
db.session.commit()
|
||||
|
||||
|
||||
|
||||
|
||||
def register(data):
|
||||
allowed_keys = User().serialize().keys()
|
||||
values = {key: value for key, value in data.items() if key in allowed_keys}
|
||||
|
|
Loading…
Reference in New Issue