mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-02 01:05:13 +02:00
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:
commit
a632bac3a6
1 changed files with 2 additions and 2 deletions
|
@ -360,7 +360,7 @@ switch ($action) {
|
|||
break;
|
||||
|
||||
case 'add-post':
|
||||
$username = alphanumeric(_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 = alphanumeric(_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