mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 17:54:41 +02:00
Refactor username validation to allow special characters for autologin using MAC address hotspot
This commit is contained in:
parent
084ee83ec3
commit
f5042cc665
1 changed files with 2 additions and 2 deletions
|
@ -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'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue