Check in the frontend if the username and password in the survey are correct (fix #179) #185

Merged
cami merged 12 commits from frontend/check-username-pw-survey into main 2021-07-22 14:55:27 +00:00
Showing only changes of commit c1fce5bf4a - Show all commits

View file

@ -141,10 +141,10 @@ def protected():
return {'message': f'protected endpoint (allowed user {flask_praetorian.current_user().username})'}
@app.route('/api/protected/rcv_pw', methods=['GET'])
@app.route('/api/rcv_pw', methods=['GET'])
def get_password():
pw = get_random_password()
ret = {'password': pw}
ret = {'random_password': pw}
return ret, 200