mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 15:37:27 +02:00
Le premier inscrit est administrateur
This commit is contained in:
@ -73,6 +73,9 @@ class NewUser
|
||||
}
|
||||
}
|
||||
|
||||
if (sizeof(User::getAllUsers()) == 0)
|
||||
$this->role = Role::ADMIN;
|
||||
|
||||
$this->confirm_email_token = genRandomPhrase(64);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user