mirror of
https://github.com/SWG-Source/auth-site.git
synced 2026-01-16 22:04:28 -05:00
Set new users to standard access by default
Prevents a user from creating themselves as superadmin
This commit is contained in:
@@ -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>';
|
||||
|
||||
Reference in New Issue
Block a user