Fixing registration without OTP, Username will not go to phonenumber

Fixing registration without OTP, Username will not go to phonenumber
This commit is contained in:
iBNu Maksum 2023-06-08 14:54:25 +07:00 committed by GitHub
commit 476c838de1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 6 deletions

View file

@ -79,7 +79,7 @@ install on new directory
composer create-project hotspotbilling/phpnuxbill phpnuxbill
```
## Manual Installation
### Manual Installation
1. Download project from [Master Branch](https://github.com/hotspotbilling/phpnuxbill/archive/refs/heads/master.zip) or from [Release](https://github.com/hotspotbilling/phpnuxbill/releases)
2. unzip and upload it to server
@ -90,6 +90,10 @@ composer create-project hotspotbilling/phpnuxbill phpnuxbill
7. set [cronjob](https://github.com/hotspotbilling/phpnuxbill/wiki/Cron-Jobs) or scheduller for **system/cron.php**
8. make **config.php** unwriteable (chmod 644)
### Docker installation
[see this repo](https://github.com/animegasan/phpnuxbill)
## UPDGRADE
for old version, below Version 6, backup **system/config.php**, delete all file except folder **pages**, upload all new files, put **config.php** in root folder (not in system folder), got to folder **/install** and run Update.
@ -102,10 +106,12 @@ or git pull if you use git clone
Still on development
## Paid Support
## Technical Support
Start from Rp 500.000 or $50
If you chat me for any technical support, you need to pay, except for Donors, ask anything for free in the [discussion](/hotspotbilling/phpnuxbill/discussions) page
[Telegram](https://t.me/ibnux)
[Website](https://ibnux.net/layanan)

View file

@ -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;

View file

@ -1,3 +1,4 @@
{
"version": "2023.3.12"
"version": "2023.6.6",
"changes" : "Fixing registration without OTP, Username will not go to phonenumber"
}