Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hdastageeri
hft_awado_app
Commits
ac078fa6
Commit
ac078fa6
authored
Nov 28, 2019
by
Rron Jahja
Browse files
Resolved PR comments.
parent
d9a548c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/auth/login/login.page.ts
View file @
ac078fa6
...
...
@@ -12,8 +12,10 @@ import { RestService } from '../../rest.service';
styleUrls
:
[
'
./login.page.scss
'
],
})
export
class
LoginPage
implements
OnInit
{
username
=
"
Bob@mail.com
"
;
password
=
"
BobPassword
"
;
// username = "Bob@mail.com";
// password = "BobPassword";
username
=
""
;
password
=
""
;
correctCredentials
=
false
;
loginApi
:
Observable
<
any
>
;
...
...
@@ -39,7 +41,7 @@ export class LoginPage implements OnInit {
console
.
log
(
'
my data:
'
,
data
);
this
.
restService
.
setToken
(
data
.
token
);
this
.
router
.
navigateByUrl
(
'
/home
'
);
},
(
error
)
=>
{
},
(
error
)
=>
{
console
.
log
(
error
);
this
.
correctCredentials
=
true
;
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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