private void SetNewUserDefaults(User user, string password) { var confirmEmailExpiryLimitInHours = 1; user.PasswordHash = _securityService.HashPassword(password); user.ConfirmEmailExpiry = DateTime.UtcNow.AddHours(confirmEmailExpiryLimitInHours); user.AccessFailedCount = 0; user.LockoutEndDateUtc = null; user.VerificationCode = VerificationCodeGenerator.GenerateVerificationCode(Uow, user); }
public string CreateVerificationCode(User user) { return(VerificationCodeGenerator.GenerateVerificationCode(Uow, user)); }