Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
anis
anis-client
Commits
2bad7c04
Commit
2bad7c04
authored
Nov 20, 2020
by
Tifenn Guillas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SQ bug + smelly code
parent
9d5fa6a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
src/app/auth/auth.effects.ts
src/app/auth/auth.effects.ts
+1
-1
src/app/auth/auth.service.ts
src/app/auth/auth.service.ts
+2
-4
No files found.
src/app/auth/auth.effects.ts
View file @
2bad7c04
...
...
@@ -105,7 +105,7 @@ export class AuthEffects {
parseJWTAction$
=
this
.
actions$
.
pipe
(
ofType
(
authActions
.
PARSE_JWT
),
switchMap
((
action
:
authActions
.
ParseJwtAction
)
=>
{
const
jwt
=
jwt_decode
(
action
.
payload
)
as
any
;
const
jwt
=
jwt_decode
(
action
.
payload
);
if
(
environment
.
ssoName
===
'
auth0
'
)
{
return
of
({
type
:
'
[No Action]
'
+
authActions
.
PARSE_JWT
});
}
else
{
...
...
src/app/auth/auth.service.ts
View file @
2bad7c04
...
...
@@ -55,11 +55,9 @@ export class AuthService {
/**
* Logs in user.
*
* @return Observable<void>
*/
doLogin
()
:
Observable
<
void
>
{
return
of
(
this
.
oidcSecurityService
.
authorize
()
)
;
doLogin
()
{
this
.
oidcSecurityService
.
authorize
();
}
/**
...
...
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