mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-18 16:48:51 +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;
|
break;
|
||||||
|
|
||||||
case 'add-post':
|
case 'add-post':
|
||||||
$username = _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 = _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'));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue