Skip to content

Commit

Permalink
Use enum in database view class
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Nov 6, 2024
1 parent cfaeaff commit b10a986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Common/Models/PasswordHashingAlgorithm.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace OpenShock.Common.Models;
// ReSharper disable InconsistentNaming
namespace OpenShock.Common.Models;

public enum PasswordHashingAlgorithm
{
Expand Down
2 changes: 1 addition & 1 deletion Common/OpenShockDb/AdminUsersView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class AdminUsersView

public required string Email { get; set; }

public required string PasswordHashType { get; set; }
public required PasswordHashingAlgorithm PasswordHashType { get; set; }

public required DateTime CreatedAt { get; set; }

Expand Down

0 comments on commit b10a986

Please sign in to comment.