Systems update
This commit is contained in:
parent
09e67d4031
commit
72a4842800
2 changed files with 1 additions and 6 deletions
|
|
@ -1,6 +1,5 @@
|
|||
#include "apparatus.h"
|
||||
#include "auth_system.h"
|
||||
#include <iostream>
|
||||
|
||||
|
||||
const user_entity* auth_system::get_user(const QString &login, bool &success) {
|
||||
|
|
@ -34,11 +33,7 @@ bool auth_system::register_user(const QString &login, const QString &password, U
|
|||
bool exists = false;
|
||||
this->get_user(login, exists);
|
||||
if (!exists) {
|
||||
std::cout << apparatus::instance()->get_auth_subsystem()->users().length() << std::endl;
|
||||
this->_users.push_back(user_entity(login, password, role));
|
||||
std::cout << apparatus::instance()->get_auth_subsystem()->users().length() << std::endl;
|
||||
apparatus::instance()->save();
|
||||
std::cout << apparatus::instance()->get_auth_subsystem()->users().length() << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue