Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
e-epal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Σταύρος Παπαδάκης
e-epal
Commits
6f6b82ad
Commit
6f6b82ad
authored
Aug 03, 2017
by
Χάρης Παπαδόπουλος
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warning fix. Deactivated test code
parent
bfcc2069
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
drupal/modules/oauthost/src/Controller/CBController.php
drupal/modules/oauthost/src/Controller/CBController.php
+6
-6
source/components/home.ts
source/components/home.ts
+0
-5
No files found.
drupal/modules/oauthost/src/Controller/CBController.php
View file @
6f6b82ad
...
...
@@ -304,14 +304,14 @@ class CBController extends ControllerBase
public
function
getXMLElements
(
$doc
){
$webUserDetails
=
$doc
->
getElementsByTagName
(
"WebUserDetails"
);
if
(
!
$webUserDetails
||
$webUserDetails
->
length
===
0
)
//
return false;
return
array
(
// to be changed to empty array
return
false
;
/*
return array( // to be changed to empty array
'firstName' => '',
'surname' => '',
'fathersName' => '',
'comments' => '',
'tin' => '12345'
);
);
*/
foreach
(
$webUserDetails
as
$element
)
{
...
...
@@ -331,14 +331,14 @@ class CBController extends ControllerBase
$tin
=
$tins
->
item
(
0
)
->
nodeValue
;
if
(
!
$tin
||
$tin
===
''
)
//
return false;
return
array
(
// to be changed to empty array
return
false
;
/*
return array( // to be changed to empty array
'firstName' => '',
'surname' => '',
'fathersName' => '',
'comments' => '',
'tin' => '12345'
);
);
*/
return
array
(
'firstName'
=>
$firstName
,
'surname'
=>
$surname
,
...
...
source/components/home.ts
View file @
6f6b82ad
...
...
@@ -17,8 +17,6 @@ import { IAppState } from "../store/store";
template
:
`
<div>
<form method = "POST" action="{{apiEndPoint}}/oauth/login{{apiEndPointParams}}" #form>
<!-- <input type="hidden" name="X-oauth-enabled" value="true"> -->
<div class="bg-warning" style="padding: 2em;">
<p>
<strong>Ανακοίνωση:</strong> Παρακαλείσθε να μην καταχωρείτε δήλωση προτίμησης επιλέγοντας τα παρακάτω:</p>
...
...
@@ -50,7 +48,6 @@ import { IAppState } from "../store/store";
})
export
default
class
Home
implements
OnInit
,
OnDestroy
{
private
authToken
:
string
;
private
authRole
:
string
;
private
name
:
any
;
...
...
@@ -73,9 +70,7 @@ export default class Home implements OnInit, OnDestroy {
this
.
name
=
""
;
this
.
loginInfo$
=
new
BehaviorSubject
(
LOGININFO_INITIAL_STATE
);
};
ngOnInit
()
{
this
.
loginInfoSub
=
this
.
_ngRedux
.
select
(
"
loginInfo
"
)
.
map
(
loginInfo
=>
<
ILoginInfoRecords
>
loginInfo
)
.
subscribe
(
linfo
=>
{
...
...
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