コード例 #1
0
        private async Task <string> CreateRegistrationToken(RegistrationRequest registrationRequest)
        {
            var    passwordResetLogic = new PasswordResetLogic(Cache, AuthContext, UserContext);
            string token = await passwordResetLogic.CreateEmptyCredentialsWithResetToken(registrationRequest.UserId, registrationRequest.Username);

            return(token);
        }
コード例 #2
0
        public async Task <ActionResult> Reset(int userId, string username)
        {
            var passwordResetLogic = new PasswordResetLogic(Cache, AuthContext, UserContext);

            string token = await passwordResetLogic.CreateEmptyCredentialsWithResetToken(userId, username);

            return(Json(token));
        }