mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Хэширование пароля
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
#include "user.h"
|
||||
#include "hashtools.h"
|
||||
#include <QCryptographicHash>
|
||||
|
||||
const QString User::TypeUserDBInstructor = "instructor";
|
||||
const QString User::TypeUserDBTrainee = "trainee";
|
||||
@@ -10,7 +12,14 @@ User::User():
|
||||
archived(),
|
||||
loggedIn(),
|
||||
TypeUserDB(),
|
||||
isAdmin(false)
|
||||
isAdmin(false),
|
||||
needSetPassword(false)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void User::hashingPassword()
|
||||
{
|
||||
// Вычисление MD5 хэша
|
||||
password = HashTools::hashingMD5string(password);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user