sea_transport_project/userentity.cpp
2020-09-10 00:43:40 +07:00

14 lines
326 B
C++

#include "userentity.h"
UserEntity::UserEntity(QString login, QString password, UserEntity::UserRoleEnum role)
{
this->_login = login;
this->_password_hash = 0;
for (auto pchar : password) {
this->_password_hash += pchar.unicode();
}
this->_password_hash %= (1 << 16);
this->_role = role;
}