if register not using FTP, username willnot go to phonenumber

This commit is contained in:
Ibnu Maksum 2023-06-08 14:43:18 +07:00
parent 6db447d79f
commit d9cda04f7d
No known key found for this signature in database
GPG key ID: 7FC82848810579E5

View file

@ -24,7 +24,9 @@ switch ($do) {
$password = _post('password');
$cpassword = _post('cpassword');
$address = _post('address');
$phonenumber = _post('username');
if(!empty($config['sms_url'])){
$phonenumber = _post('username');
}
$msg = '';
if (Validator::Length($username, 35, 2) == false) {
$msg .= 'Username should be between 3 to 55 characters' . '<br>';