Commit 8f3ed10c authored by Open Source Developer's avatar Open Source Developer

username

parent 38d3a8be
......@@ -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:
......
......@@ -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 });
});
......
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