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:
Alex Bezdieniezhnykh
2024-11-09 00:37:43 +02:00
commit 121052a3ef
26 changed files with 605 additions and 0 deletions
+18
View File
@@ -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
}