forked from kevinowino869/mitrobill
Merge pull request #32 from hotspotbilling/Development
Fixing registration without OTP, Username will not go to phonenumber
This commit is contained in:
commit
7283ca9749
@ -19,12 +19,14 @@ $otpPath = 'system/cache/sms/';
|
||||
switch ($do) {
|
||||
case 'post':
|
||||
$otp_code = _post('otp_code');
|
||||
$username = _post('username');
|
||||
$username = alphanumeric(_post('username'),"+_.");
|
||||
$fullname = _post('fullname');
|
||||
$password = _post('password');
|
||||
$cpassword = _post('cpassword');
|
||||
$address = _post('address');
|
||||
$phonenumber = _post('username');
|
||||
if(!empty($config['sms_url'])){
|
||||
$phonenumber = $username;
|
||||
}
|
||||
$msg = '';
|
||||
if (Validator::Length($username, 35, 2) == false) {
|
||||
$msg .= 'Username should be between 3 to 55 characters' . '<br>';
|
||||
@ -73,7 +75,7 @@ switch ($do) {
|
||||
if ($msg == '') {
|
||||
run_hook('register_user'); #HOOK
|
||||
$d = ORM::for_table('tbl_customers')->create();
|
||||
$d->username = $username;
|
||||
$d->username = alphanumeric($username,"+_.");
|
||||
$d->password = $password;
|
||||
$d->fullname = $fullname;
|
||||
$d->address = $address;
|
||||
|
Loading…
x
Reference in New Issue
Block a user