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))
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')
def load(index): return loginController().get_load(index)
def recover_password_customer(): return loginController().recover_password_customer(request)
def login_customer(): return loginController().login_customer(request)
def login_user(): return loginController().login_user(request)