public bool sendMailForChangePassword(IStoreSecurity security, SMTPDetails sMTPDetails, string EmailId, string content, int TenantId) { _SecurityRepository = security; CommonService commonService = new CommonService(); return(_SecurityRepository.sendMailForChangePassword(sMTPDetails, EmailId, content, TenantId)); }
/// <summary> /// Update password /// </summary> /// <param name="security">Interface </param> /// <param name="cipherEmailId">Encrypted email Id</param> /// <param name="Password">Plain text Password </param> /// <returns></returns> public bool UpdatePassword(IStoreSecurity security, string cipherEmailId, string Password) { _SecurityRepository = security; CommonService commonService = new CommonService(); //string plainEmailId = string.Empty; //try //{ // plainEmailId = commonService.Decrypt(cipherEmailId); //} //catch //{ // plainEmailId = cipherEmailId; //} //string encryptedPassword = commonService.Encrypt(Password); return(_SecurityRepository.UpdatePassword(cipherEmailId, Password)); }
/// <summary> /// Validate User Account /// </summary> /// <param name="security"></param> /// <param name="ProgramCode"></param> /// <param name="Domainname"></param> /// <param name="userId"></param> /// <param name="password"></param> /// <returns></returns> public AccountModal validateUser(IStoreSecurity security, string ProgramCode, string Domainname, string userId, string password) { _SecurityRepository = security; return(_SecurityRepository.AuthenticateUser(ProgramCode, Domainname, userId, password)); }
/// <summary> /// Validate token and get permission /// </summary> /// <param name="security"></param> /// <param name="SecretToken"></param> /// <param name="ModuleID"></param> /// <returns></returns> public DataSet validateTokenGetPermission(IStoreSecurity security, string SecretToken, int ModuleID) { _SecurityRepository = security; return(_SecurityRepository.validateTokenGetPermission(SecretToken, ModuleID)); }
public void GetForgetPassowrdMailContent(IStoreSecurity security, int TenantId, string url, string emailid, out string content, out string subject) { _SecurityRepository = security; _SecurityRepository.GetForgetPassowrdMailContent(TenantId, url, emailid, out content, out subject); }
public bool ChangePassword(IStoreSecurity security, CustomChangePassword customChangePassword, int TenantId, int UserID) { _SecurityRepository = security; return(_SecurityRepository.ChangePassword(customChangePassword, TenantId, UserID)); }
/// <summary> /// validateProgramCode /// </summary> /// <param name="security"></param> /// <param name="Programcode"></param> /// <param name="Domainname"></param> /// <returns></returns> public bool validateProgramCode(IStoreSecurity security, string Programcode, string Domainname) { _SecurityRepository = security; return(_SecurityRepository.validateProgramCode(Programcode, Domainname)); }
public Authenticate validateUserEmailId(IStoreSecurity security, string EmailId) { _SecurityRepository = security; return(_SecurityRepository.validateUserEmailId(EmailId)); }
/// <summary> /// Logout user /// </summary> /// <param name="security"></param> /// <param name="token"></param> public void Logout(IStoreSecurity security, string token) { _SecurityRepository = security; _SecurityRepository.Logout(token); }