Provider login
This commit is contained in:
+9
-1
@@ -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.
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user