This commit is contained in:
2025-12-05 12:20:47 +03:00
parent 57673d0ee4
commit 05fce073f1
450 changed files with 58 additions and 58 deletions

View File

@@ -0,0 +1,25 @@
#include "user.h"
#include "hashtools.h"
#include <QCryptographicHash>
const QString User::TypeUserDBInstructor = "instructor";
const QString User::TypeUserDBTrainee = "trainee";
User::User():
BasicEntity(),
login(),
password(),
archived(),
loggedIn(),
TypeUserDB(),
isAdmin(false),
needSetPassword(false)
{
}
void User::hashingPassword()
{
// Вычисление MD5 хэша
password = HashTools::hashingMD5string(password);
}