Skip to content

Commit

Permalink
Add IsLocked to UserEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Mar 22, 2024
1 parent 46072b9 commit 23eae55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Nager.Authentication.Abstraction/Entities/UserEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ public class UserEntity
public DateTime? LastFailedValidationTimestamp { get; set; }

public DateTime? LastSuccessfulValidationTimestamp { get; set; }

public bool IsLocked { get; set; }
}
}
3 changes: 2 additions & 1 deletion src/Nager.Authentication/Services/UserManagementService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ public async Task<bool> CreateAsync(
Lastname = createUserRequest.Lastname,
RolesData = RoleHelper.GetRolesData(createUserRequest.Roles),
PasswordHash = passwordHash,
PasswordSalt = passwordSalt
PasswordSalt = passwordSalt,
IsLocked = false
};

return await this._userRepository.AddAsync(userEntity, cancellationToken);
Expand Down

0 comments on commit 23eae55

Please sign in to comment.