mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-02-24 15:36:33 +08:00
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
3 changed files with 15 additions and 6 deletions
10
README.md
10
README.md
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{
|
||||
"version": "2023.3.12"
|
||||
"version": "2023.6.6",
|
||||
"changes" : "Fixing registration without OTP, Username will not go to phonenumber"
|
||||
}
|
Loading…
Reference in a new issue