forked from kevinowino869/mitrobill
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:
commit
476c838de1
10
README.md
10
README.md
@ -79,7 +79,7 @@ install on new directory
|
|||||||
composer create-project hotspotbilling/phpnuxbill phpnuxbill
|
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)
|
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
|
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**
|
7. set [cronjob](https://github.com/hotspotbilling/phpnuxbill/wiki/Cron-Jobs) or scheduller for **system/cron.php**
|
||||||
8. make **config.php** unwriteable (chmod 644)
|
8. make **config.php** unwriteable (chmod 644)
|
||||||
|
|
||||||
|
### Docker installation
|
||||||
|
|
||||||
|
[see this repo](https://github.com/animegasan/phpnuxbill)
|
||||||
|
|
||||||
## UPDGRADE
|
## 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.
|
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
|
Still on development
|
||||||
|
|
||||||
## Paid Support
|
## Technical Support
|
||||||
|
|
||||||
Start from Rp 500.000 or $50
|
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)
|
[Telegram](https://t.me/ibnux)
|
||||||
|
|
||||||
[Website](https://ibnux.net/layanan)
|
[Website](https://ibnux.net/layanan)
|
||||||
|
@ -19,12 +19,14 @@ $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');
|
||||||
$phonenumber = _post('username');
|
if(!empty($config['sms_url'])){
|
||||||
|
$phonenumber = $username;
|
||||||
|
}
|
||||||
$msg = '';
|
$msg = '';
|
||||||
if (Validator::Length($username, 35, 2) == false) {
|
if (Validator::Length($username, 35, 2) == false) {
|
||||||
$msg .= 'Username should be between 3 to 55 characters' . '<br>';
|
$msg .= 'Username should be between 3 to 55 characters' . '<br>';
|
||||||
@ -73,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;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"version": "2023.3.12"
|
"version": "2023.6.6",
|
||||||
|
"changes" : "Fixing registration without OTP, Username will not go to phonenumber"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user