mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
rename0
This commit is contained in:
25
DataBaseInterface/user.cpp
Normal file
25
DataBaseInterface/user.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user