mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-10-29 18:02:29 +00:00
First iteration of default user credentials creation.
This commit is contained in:
@@ -131,8 +131,10 @@ namespace OpenWifi {
|
||||
if(!Records.empty())
|
||||
return false;
|
||||
|
||||
NewUser.Id = MicroService::instance().CreateUUID();
|
||||
NewUser.creationDate = std::time(nullptr);
|
||||
if(!PasswordHashedAlready) {
|
||||
NewUser.Id = MicroService::instance().CreateUUID();
|
||||
NewUser.creationDate = std::time(nullptr);
|
||||
}
|
||||
|
||||
// if there is a password, we assume that we do not want email verification,
|
||||
// if there is no password, we will do email verification
|
||||
|
||||
Reference in New Issue
Block a user