First iteration of default user credentials creation.

This commit is contained in:
stephb9959
2021-11-11 15:52:23 -08:00
parent a3d86c7cf9
commit 6c90c75708

View File

@@ -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