Commit 8575ae21 authored by Open Source Developer's avatar Open Source Developer
Browse files

trans

parent 80d285b5
...@@ -89,7 +89,7 @@ class CASLogin extends ControllerBase ...@@ -89,7 +89,7 @@ class CASLogin extends ControllerBase
} }
// phpCAS::setDebug("/home/haris/devel/eepal/drupal/modules/casost/phpcas.log"); // phpCAS::setDebug("/home/haris/devel/eepal/drupal/modules/casost/phpcas.log");
// Enable verbose error messages. Disable in production! // Enable verbose error messages. Disable in production!
phpCAS::setVerbose(true); //phpCAS::setVerbose(true);
phpCAS::client($this->serverVersion, phpCAS::client($this->serverVersion,
$this->serverHostname, $this->serverHostname,
...@@ -176,7 +176,7 @@ class CASLogin extends ControllerBase ...@@ -176,7 +176,7 @@ class CASLogin extends ControllerBase
$epalToken = $this->authenticatePhase2($request, $CASUser, $filterAttribute('cn')); $epalToken = $this->authenticatePhase2($request, $CASUser, $filterAttribute('cn'));
if ($epalToken) { if ($epalToken) {
return new RedirectResponse('/dist/#/school?auth_token=' . $epalToken.'&auth_role=director', 302, []); return new RedirectResponse('/angular/eepal-front/dist/#/school?auth_token=' . $epalToken.'&auth_role=director', 302, []);
} else { } else {
$response = new Response(); $response = new Response();
$response->setContent('forbidden'); $response->setContent('forbidden');
......
...@@ -94,7 +94,7 @@ class CASLogout extends ControllerBase ...@@ -94,7 +94,7 @@ class CASLogout extends ControllerBase
// Enable debugging // Enable debugging
// phpCAS::setDebug("/home/haris/devel/eepal/drupal/modules/casost/phpcas.log"); // phpCAS::setDebug("/home/haris/devel/eepal/drupal/modules/casost/phpcas.log");
// Enable verbose error messages. Disable in production! // Enable verbose error messages. Disable in production!
phpCAS::setVerbose(true); //phpCAS::setVerbose(true);
// Initialize phpCAS // Initialize phpCAS
phpCAS::client($this->serverVersion, phpCAS::client($this->serverVersion,
......
export const API_ENDPOINT = 'http://localhost/angular/eepal-front/drupal'; export const API_ENDPOINT = 'http://eduslim2.minedu.gov.gr/angular/eepal-front/drupal';
export class AppSettings { export class AppSettings {
public static get API_ENDPOINT(): string { public static get API_ENDPOINT(): string {
return 'http://localhost/angular/eepal-front/drupal'; return 'http://eduslim2.minedu.gov.gr/angular/eepal-front/drupal';
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment