コード例 #1
0
ファイル: UserLoginBiz.cs プロジェクト: solo123/AGMV
        public string RecoverPassword(string email)
        {
            UserBiz biz = new UserBiz();
            int userId = biz.GetUserIdByEmail(email);
            if (userId < 0)
            {
                base.ErrorMessage = "��Email����]���]�ԣ�Ո��<a href=\"signup.aspx\">���Ñ��]������M�]�ԡ�</a>";
                return null;
            }

            string newPassword = RandomPassword.Generate(4);
            if (ChangePassword(userId, newPassword))
                return newPassword;
            else
                return null;
        }