fix reset password
wrong method in userController was executed to get user
This commit is contained in:
parent
7eb30b662f
commit
193ffeff9d
|
@ -165,7 +165,7 @@ def get_assocd_user(token, current_session, **kwargs):
|
||||||
def reset_password():
|
def reset_password():
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
if "userid" in data:
|
if "userid" in data:
|
||||||
user = userController.find_user(data["userid"])
|
user = userController.get_user(data["userid"])
|
||||||
if user:
|
if user:
|
||||||
userController.request_reset(user)
|
userController.request_reset(user)
|
||||||
elif "password" in data and "token" in data:
|
elif "password" in data and "token" in data:
|
||||||
|
|
Loading…
Reference in New Issue