Refactor username validation to allow special characters for autologin using MAC address hotspot

This commit is contained in:
ricki 2024-08-02 18:13:35 +07:00
parent 084ee83ec3
commit f5042cc665

View File

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