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);
        }
Example #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));
        }
Example #3
0
        public async Task Reset(int userId)
        {
            var passwordResetLogic = new PasswordResetLogic(Cache, AuthContext, UserContext);

            await passwordResetLogic.ResetPassword(userId);
        }