mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
26 lines
476 B
C++
26 lines
476 B
C++
#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);
|
|
}
|