Provider login

This commit is contained in:
CHIEFSOFT\ameye
2024-09-07 18:11:13 -04:00
parent fc9e7c2d7c
commit beeb01ca6b
9 changed files with 63 additions and 17 deletions
+9 -1
View File
@@ -6,6 +6,14 @@ use CodeIgniter\Config\BaseConfig;
class App extends BaseConfig
{
public function __construct()
{
$protocol = stripos($_SERVER['SERVER_PROTOCOL'],'https') === 0 ? 'http://' : 'http://';
$this->baseURL = $protocol.$_SERVER['HTTP_HOST'];
}
/**
* --------------------------------------------------------------------------
* Base Site URL
@@ -16,7 +24,7 @@ class App extends BaseConfig
*
* E.g., http://example.com/
*/
public string $baseURL = 'http://localhost:8080/';
public string $baseURL = 'http://localhost:63101/';
/**
* Allowed Hostnames in the Site URL other than the hostname in the baseURL.
+4
View File
@@ -9,8 +9,12 @@ $routes->get('/', 'Home::index');
$routes->post('login', 'Login::StartLogin');
$routes->get('login', 'Login::HomeLogin');
$routes->get('logout', 'Login::StartLogin');
$routes->get('register', 'Login::RegisterAccount');
$routes->get('register/resetpass', 'Login::RegisterAccount');
$routes->post('/register/startacc', 'Login::RegisterAccount');
$routes->get('providers', 'Provider::StartProviders');