Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Χάρης Παπαδόπουλος
e-epal
Commits
8575ae21
Commit
8575ae21
authored
Apr 22, 2017
by
Open Source Developer
Browse files
trans
parent
80d285b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
drupal/modules/casost/src/Controller/CASLogin.php
View file @
8575ae21
...
...
@@ -89,7 +89,7 @@ class CASLogin extends ControllerBase
}
// phpCAS::setDebug("/home/haris/devel/eepal/drupal/modules/casost/phpcas.log");
// Enable verbose error messages. Disable in production!
phpCAS
::
setVerbose
(
true
);
//
phpCAS::setVerbose(true);
phpCAS
::
client
(
$this
->
serverVersion
,
$this
->
serverHostname
,
...
...
@@ -176,7 +176,7 @@ class CASLogin extends ControllerBase
$epalToken
=
$this
->
authenticatePhase2
(
$request
,
$CASUser
,
$filterAttribute
(
'cn'
));
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
{
$response
=
new
Response
();
$response
->
setContent
(
'forbidden'
);
...
...
drupal/modules/casost/src/Controller/CASLogout.php
View file @
8575ae21
...
...
@@ -94,7 +94,7 @@ class CASLogout extends ControllerBase
// Enable debugging
// phpCAS::setDebug("/home/haris/devel/eepal/drupal/modules/casost/phpcas.log");
// Enable verbose error messages. Disable in production!
phpCAS
::
setVerbose
(
true
);
//
phpCAS::setVerbose(true);
// Initialize phpCAS
phpCAS
::
client
(
$this
->
serverVersion
,
...
...
source/app.settings.ts
View file @
8575ae21
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
{
public
static
get
API_ENDPOINT
():
string
{
return
'
http://
localhost
/angular/eepal-front/drupal
'
;
return
'
http://
eduslim2.minedu.gov.gr
/angular/eepal-front/drupal
'
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment