allow - on username
This commit is contained in:
parent
10eb6d1735
commit
92386ff65e
@ -360,7 +360,7 @@ switch ($action) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'add-post':
|
case 'add-post':
|
||||||
$username = alphanumeric(_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'));
|
||||||
@ -439,7 +439,7 @@ switch ($action) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'edit-post':
|
case 'edit-post':
|
||||||
$username = alphanumeric(_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'));
|
||||||
|
@ -64,7 +64,7 @@ switch ($do) {
|
|||||||
$user = ORM::for_table('tbl_customers')->where('username', $username)->find_one();
|
$user = ORM::for_table('tbl_customers')->where('username', $username)->find_one();
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
$d = ORM::for_table('tbl_customers')->create();
|
$d = ORM::for_table('tbl_customers')->create();
|
||||||
$d->username = alphanumeric($username, "+_.@");
|
$d->username = alphanumeric($username, "+_.@-");
|
||||||
$d->password = $voucher;
|
$d->password = $voucher;
|
||||||
$d->fullname = '';
|
$d->fullname = '';
|
||||||
$d->address = '';
|
$d->address = '';
|
||||||
|
@ -16,7 +16,7 @@ $otpPath = $CACHE_PATH . File::pathFixer('/sms/');
|
|||||||
switch ($do) {
|
switch ($do) {
|
||||||
case 'post':
|
case 'post':
|
||||||
$otp_code = _post('otp_code');
|
$otp_code = _post('otp_code');
|
||||||
$username = alphanumeric(_post('username'), "+_.@");
|
$username = alphanumeric(_post('username'), "+_.@-");
|
||||||
$email = _post('email');
|
$email = _post('email');
|
||||||
$fullname = _post('fullname');
|
$fullname = _post('fullname');
|
||||||
$password = _post('password');
|
$password = _post('password');
|
||||||
@ -78,7 +78,7 @@ switch ($do) {
|
|||||||
if ($msg == '') {
|
if ($msg == '') {
|
||||||
run_hook('register_user'); #HOOK
|
run_hook('register_user'); #HOOK
|
||||||
$d = ORM::for_table('tbl_customers')->create();
|
$d = ORM::for_table('tbl_customers')->create();
|
||||||
$d->username = alphanumeric($username, "+_.@");
|
$d->username = alphanumeric($username, "+_.@-");
|
||||||
$d->password = $password;
|
$d->password = $password;
|
||||||
$d->fullname = $fullname;
|
$d->fullname = $fullname;
|
||||||
$d->address = $address;
|
$d->address = $address;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user