Exemple #1
0
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())
Exemple #2
0
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())
Exemple #3
0
def create_component_user():
    email = request.form['email']
    Mailing().askfortoken(email)
    return redirect('/get-component-token#success')