mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-19 09:08:56 +02:00
alphanumeric
This commit is contained in:
parent
d9cda04f7d
commit
9115d1c41b
1 changed files with 3 additions and 3 deletions
|
@ -19,13 +19,13 @@ $otpPath = 'system/cache/sms/';
|
||||||
switch ($do) {
|
switch ($do) {
|
||||||
case 'post':
|
case 'post':
|
||||||
$otp_code = _post('otp_code');
|
$otp_code = _post('otp_code');
|
||||||
$username = _post('username');
|
$username = alphanumeric(_post('username'),"+_.");
|
||||||
$fullname = _post('fullname');
|
$fullname = _post('fullname');
|
||||||
$password = _post('password');
|
$password = _post('password');
|
||||||
$cpassword = _post('cpassword');
|
$cpassword = _post('cpassword');
|
||||||
$address = _post('address');
|
$address = _post('address');
|
||||||
if(!empty($config['sms_url'])){
|
if(!empty($config['sms_url'])){
|
||||||
$phonenumber = _post('username');
|
$phonenumber = $username;
|
||||||
}
|
}
|
||||||
$msg = '';
|
$msg = '';
|
||||||
if (Validator::Length($username, 35, 2) == false) {
|
if (Validator::Length($username, 35, 2) == false) {
|
||||||
|
@ -75,7 +75,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 = $username;
|
$d->username = alphanumeric($username,"+_.");
|
||||||
$d->password = $password;
|
$d->password = $password;
|
||||||
$d->fullname = $fullname;
|
$d->fullname = $fullname;
|
||||||
$d->address = $address;
|
$d->address = $address;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue