コード例 #1
0
ファイル: UserBO.cs プロジェクト: devibalar/ilmpms
    public bool ResetPassword(string userName)
    {
        string resetkey = "";
        bool   status   = false;

        try
        {
            resetkey = userDao.ResetPassword(userName);
            string emailId = userDao.GetUserEmailForUserName(userName);
            if (resetkey != "")
            {
                EmailUtility.EmailResetPassword(userName, emailId, resetkey);
                status = true;
            }
        }
        catch (CustomException ex)
        {
            throw ex;
        }
        return(status);
    }