Esempio n. 1
0
def wa_change_password_post():
    _full_name = request.form.get("idTxtUsusario")
    _password = request.form.get("idTxtPassword")
    _new_password  = request.form.get("idTxtNewPassword")
    _confirm_password = request.form.get("idTxtConfirmNewPassword")
    _status = 0
    _entity = userEntity()
    _entity = loginController().login_user_web(_full_name,_password)
    if _entity is None:
        _status = 1
    else:
        if _new_password != _confirm_password:
            _status = 2
        else:
            _entity = loginController().change_password_user_web(_full_name,_new_password)
    return redirect('/wa_change_password?status='+str(_status))
Esempio n. 2
0
def wa_login_post():
    _full_name = request.form.get("idTxtUsusario")
    _password = request.form.get("idTxtPassword")
    _entity = userEntity()
    _entity = loginController().login_user_web(_full_name,_password)
    if _entity is None:
        return redirect('/wa_login?error=1')
    else:
        session['full_name'] = _full_name
        return redirect('/wa_list_services')
Esempio n. 3
0
def load(index):
    return loginController().get_load(index)
Esempio n. 4
0
def recover_password_customer():
    return loginController().recover_password_customer(request)
Esempio n. 5
0
def login_customer():
    return loginController().login_customer(request)
Esempio n. 6
0
def login_user():
    return loginController().login_user(request)