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); }
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)); }