mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12:11:10 +00:00
Implements authentication system
This commit is contained in:
1 parent
38829d64ff
commit
a6dcf65d1c
103 files changed
+2983
-454
No files matched your search
@@ -29,6 +29,11 @@ public class UserEntity : IStorageEntity
|
||||
/// </summary>
|
||||
public required string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the temporary hashed password used in password recovery.
|
||||
/// </summary>
|
||||
public string? TempPassword { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the optional Time-based One-Time Password (TOTP) secret for two-factor authentication.
|
||||
/// </summary>
|
||||
@@ -44,6 +49,11 @@ public class UserEntity : IStorageEntity
|
||||
/// </summary>
|
||||
public DateTime? VerificationTokenCreated { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the date and time when the temporary password used in password recovery was created.
|
||||
/// </summary>
|
||||
public DateTime? TempPasswordCreated { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the collection of libraries owned by this user.
|
||||
/// </summary>
|
||||
|
||||
@@ -14,7 +14,8 @@ namespace Lumina.Application.Common.DataAccess.Repositories.Users;
|
||||
/// </summary>
|
||||
public interface IUserRepository : IRepository<UserEntity>,
|
||||
IGetAllRepositoryAction<UserEntity>,
|
||||
IInsertRepositoryAction<UserEntity>
|
||||
IInsertRepositoryAction<UserEntity>,
|
||||
IUpdateRepositoryAction<UserEntity>
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a username identified by <paramref name="username"/> from the repository, if it exists.
|
||||
|
||||
Reference in new issue
Block a user