@home_routes.route('/reset_password/<hash>', methods=('GET', 'POST'))
def change_password_view(hash):
 if (request.method == 'GET'):
  return render_template('gentelella/admin/login/change_password.html')
 if (request.method == 'POST'):
  DataManager.reset_password(request.form, hash)
  return redirect(url_for('.index'))

@ home_routes . route ( '/reset_password/<hash>' , methods = ( 'GET' , 'POST' ) ) def change_password_view ( hash ) : if ( request . method == 'GET' ) : return render_template ( 'gentelella/admin/login/change_password.html' ) if ( request . method == 'POST' ) : DataManager . reset_password ( request . form , hash ) return redirect ( url_for ( '.index' ) )
change password view .