mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 08:46:34 +00:00
Init commit
add security encryption and hashing: WIP add endpoints: register user, get and save resources add db main operations, User entity
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
namespace Azaion.Common;
|
||||
|
||||
public class BusinessException(ExceptionEnum exEnum, string message) : Exception(message)
|
||||
{
|
||||
private ExceptionEnum ExceptionEnum { get; set; } = exEnum;
|
||||
}
|
||||
|
||||
public enum ExceptionEnum
|
||||
{
|
||||
NoUserFound = 10,
|
||||
UserExists = 20,
|
||||
PasswordIncorrect = 30,
|
||||
UserLengthIncorrect = 33,
|
||||
WrongEmail = 35,
|
||||
PasswordLengthIncorrect = 37,
|
||||
HardwareIdMismatch = 40,
|
||||
WrongResourceType = 50
|
||||
}
|
||||
Reference in New Issue
Block a user