Set new users to standard access by default

Prevents a user from creating themselves as superadmin
This commit is contained in:
Alec Harley
2020-04-06 07:02:44 -07:00
committed by GitHub
parent 88abab5b3a
commit 9556ff5ea8

View File

@@ -26,7 +26,7 @@ if($action=='create') {
username = '".$mysqli->real_escape_string($_POST['useraccountname'])."',
password_hash = '".$mysqli->real_escape_string($passwordEncrypted)."',
password_salt = '".$mysqli->real_escape_string($passwordSalt)."',
accesslevel = '".$mysqli->real_escape_string($_POST['accesslevel'])."'";
accesslevel = 'standard'";
if( $mysqli->query($query) ) {
echo '<script>';