force password change after login
This commit is contained in:
10
Moonlight/App/Models/Forms/PasswordModel.cs
Normal file
10
Moonlight/App/Models/Forms/PasswordModel.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Moonlight.App.Models.Forms;
|
||||
|
||||
public class PasswordModel
|
||||
{
|
||||
[Required(ErrorMessage = "You need to enter a password")]
|
||||
[MinLength(8, ErrorMessage = "You need to enter a password with minimum 8 characters in lenght")]
|
||||
public string Password { get; set; }
|
||||
}
|
||||
@@ -9,5 +9,6 @@ public enum UserStatus
|
||||
Warned,
|
||||
Banned,
|
||||
Disabled,
|
||||
DataPending
|
||||
DataPending,
|
||||
PasswordPending
|
||||
}
|
||||
Reference in New Issue
Block a user