public IUserResetPassword Find(string token) { var userResetPassword = FindUserResetPassword.Find(token); if (userResetPassword == null || !userResetPassword.IsValid()) { return(null); } return(userResetPassword); }
public IWebGenerateUserResetPasswordResult Regenerate(string token) { var userResetPassword = FindUserResetPassword.Find(token); return(GenerateUserResetPassword.Generate(userResetPassword?.Username ?? string.Empty)); }