Merge pull request #230 from rickicode/master

Refactor username validation to allow special characters for autologin using MAC address hotspot
This commit is contained in:
iBNu Maksum 2024-08-05 10:53:52 +07:00 committed by GitHub
commit a632bac3a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -360,7 +360,7 @@ switch ($action) {
break; break;
case 'add-post': case 'add-post':
$username = alphanumeric(_post('username'), "+_.@-"); $username = alphanumeric(_post('username'), ":+_.@-");
$fullname = _post('fullname'); $fullname = _post('fullname');
$password = trim(_post('password')); $password = trim(_post('password'));
$pppoe_password = trim(_post('pppoe_password')); $pppoe_password = trim(_post('pppoe_password'));
@ -480,7 +480,7 @@ switch ($action) {
break; break;
case 'edit-post': case 'edit-post':
$username = alphanumeric(_post('username'), "+_.@-"); $username = alphanumeric(_post('username'), ":+_.@-");
$fullname = _post('fullname'); $fullname = _post('fullname');
$account_type = _post('account_type'); $account_type = _post('account_type');
$password = trim(_post('password')); $password = trim(_post('password'));