def setnewpassword(): if request.method == 'POST': temp = request.args.get('token') givenpassword = request.form['password'] Mailing().updatepassword(temp, givenpassword) return redirect('/') else: return make_response(open('api/templates/create-password.html').read())
def resetpassword(): if request.method == 'POST': givenemail = request.form['email'] Mailing().askforreset(givenemail) return redirect('/') else: return make_response(open('api/templates/reset-password.html').read())
def create_component_user(): email = request.form['email'] Mailing().askfortoken(email) return redirect('/get-component-token#success')