public async Task PasswordRecovery(string username) { var(user, token) = await userRepo.GetPasswordRecoveryToken(username); if (user == null) { throw new NotFoundException(); } await emailHandler.SendPasswordRecoveryEmail(user, token); }
public async Task PasswordRecovery(string username) { var(user, token) = await userRepo.GetPasswordRecoveryToken(username); if (user == null) { throw new NotFoundException(); } await emailHandler.SendPasswordRecoveryEmail(user, token); }