Change api for random password
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
cami 2021-07-22 03:24:31 +02:00
parent 7a930c20b6
commit c1fce5bf4a

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