1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-26 01:07:35 +02:00

Le premier inscrit est administrateur

This commit is contained in:
Yohann D'ANELLO
2020-01-18 17:37:24 +01:00
parent 9213258df4
commit a36a4cc728
2 changed files with 4 additions and 1 deletions

View File

@ -73,6 +73,9 @@ class NewUser
}
}
if (sizeof(User::getAllUsers()) == 0)
$this->role = Role::ADMIN;
$this->confirm_email_token = genRandomPhrase(64);
}