public static bool ChangePassword(BOM.User user, String pass) { String encrypted = Encrypted.GetEncrypted(pass); if (DAL.AuthenticationDal.UpdatePassword(user, encrypted)) { String res = BOL.SendMail(user.email, "password for watershed is updated", "updated password is: " + pass); return(true); } return(false); }
public static String ForgetPassword(BOM.User user) { BOM.User users = DAL.AuthenticationDal.checkEmail(user); if (null == users) { return("fail"); } String newpass = BOL.RandomNum(); if (ChangePassword(users, newpass)) { return("success"); } return("fail"); }
public System.Threading.Tasks.Task <bool> doRegisterAsync(BOM.User user) { return(base.Channel.doRegisterAsync(user)); }
public bool doRegister(BOM.User user) { return(base.Channel.doRegister(user)); }
public System.Threading.Tasks.Task <BOM.User> doLoginAsync(BOM.User user) { return(base.Channel.doLoginAsync(user)); }
public BOM.User doLogin(BOM.User user) { return(base.Channel.doLogin(user)); }
public static BOM.User Login(BOM.User user) { user.password = Encrypted.GetEncrypted(user.password); //user.ConfirmPassword = Encrypted.GetEncrypted(user.ConfirmPassword); return(DAL.AuthenticationDal.LoginDal(user)); }
public static Boolean Register(BOM.User user) { user.password = Encrypted.GetEncrypted(user.password); user.ConfirmPassword = Encrypted.GetEncrypted(user.ConfirmPassword); return(DAL.AuthenticationDal.RegisterDal(user)); }
public System.Threading.Tasks.Task <bool> ChangePasswordAsync(BOM.User user, string pass) { return(base.Channel.ChangePasswordAsync(user, pass)); }
public bool ChangePassword(BOM.User user, string pass) { return(base.Channel.ChangePassword(user, pass)); }
public System.Threading.Tasks.Task <string> ForgetPasswordAsync(BOM.User users) { return(base.Channel.ForgetPasswordAsync(users)); }
public string ForgetPassword(BOM.User users) { return(base.Channel.ForgetPassword(users)); }