mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 02:04:53 +02:00
allow - on username
This commit is contained in:
parent
10eb6d1735
commit
92386ff65e
3 changed files with 5 additions and 5 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'));
|
||||
|
@ -439,7 +439,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