Beispiel #1
0
        public static string CreateNewLogin(string password, string userid, string emailAddress)
        {
            string strPass = Encryptor.Encrypt(password);
            string sss     = Fn.ExenID("usp_CreateNewLogin @Password = '******' ,@userid = '" + userid + "', @EmpID = '" + CreateLogin.UserID + "', @username = '******'");

            DBManagerPSICMisc dbMan     = new DBManagerPSICMisc();
            string            emailBody = dbMan.NewAccountEmailBody(emailAddress, password);

            Fn.SendEmail(emailAddress, "New Login Created", emailBody, dbMan.UserEmail(CreateLogin.UserID));

            return(string.Empty);
        }
Beispiel #2
0
        public static void ForgotPassword(string userid, string emailAddress)
        {
            string            NewPassword = "******";
            DBManagerPSICMisc dbMan       = new DBManagerPSICMisc();

            Fn.Exec("UPDATE Login SET Password = '******' where UserName = '******'");
            Fn.SendEmail(emailAddress, "New Password", dbMan.ForgotPasswordEmailBody(emailAddress, NewPassword), dbMan.UserEmail(UserID));
        }