Minor system improvements
This commit is contained in:
parent
3e196f3574
commit
9686b96d8a
16 changed files with 144 additions and 86 deletions
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
user_entity::user_entity(const QString &login, const QString &password, UserRole role) : _login(login), _role(role) {
|
||||
this->_pwd_hash = QCryptographicHash::hash(password.toLocal8Bit(), QCryptographicHash::Sha3_256);
|
||||
foreach (auto bit, this->_pwd_hash) {
|
||||
this->_id += bit;
|
||||
}
|
||||
this->_id += QRandomGenerator().generate64();
|
||||
}
|
||||
|
||||
entity_id user_entity::id() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue