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
8f3ed10c
Commit
8f3ed10c
authored
Mar 11, 2017
by
Open Source Developer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
username
parent
38d3a8be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
drupal/modules/epal/epal.routing.yml
drupal/modules/epal/epal.routing.yml
+3
-3
source/components/home.ts
source/components/home.ts
+4
-3
No files found.
drupal/modules/epal/epal.routing.yml
View file @
8f3ed10c
...
...
@@ -24,12 +24,12 @@ epal_auth_test:
_user_is_logged_in
:
'
TRUE'
current_user
:
path
:
'
/epal/curuser/{token_name}'
options
:
_auth
:
[
'
basic_auth'
]
options
:
_auth
:
[
'
basic_auth'
]
defaults
:
_controller
:
'
\Drupal\epal\Controller\CurrentUser::content'
requirements
:
_user_is_logged_in
:
'
TRUE'
_access
:
'
TRUE'
epal.application_submit
:
path
:
'
/epal/appsubmit'
options
:
...
...
source/components/home.ts
View file @
8f3ed10c
...
...
@@ -90,8 +90,7 @@ export default class Home implements OnInit {
state
.
loginInfo
.
reduce
(({},
loginInfoToken
)
=>
{
this
.
authToken
=
loginInfoToken
.
auth_token
;
this
.
authRole
=
loginInfoToken
.
auth_role
;
if
(
this
.
authToken
&&
this
.
authToken
.
length
>
0
)
this
.
router
.
navigate
([
'
/epal-class-select
'
]);
return
loginInfoToken
;
},
{});
}
...
...
@@ -111,7 +110,9 @@ export default class Home implements OnInit {
if
(
this
.
authToken
&&
this
.
authRole
)
this
.
_ata
.
getloginInfo
({
auth_token
:
this
.
authToken
,
auth_role
:
this
.
authRole
});
console
.
log
(
this
.
authToken
,
"
tttttttt
"
);
if
(
this
.
authToken
&&
this
.
authToken
.
length
>
0
)
this
.
router
.
navigate
([
'
/epal-class-select
'
]);
// this._ata.saveLoginInfo({ auth_token: this.authToken, auth_role: this.authRole, cu_name:this.name });
});
...
...
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