mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 11:52:20 +01: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