Warning fix. Deactivated test code

parent bfcc2069
......@@ -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,
......
......@@ -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 => {
......
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