Commit ac078fa6 authored by Rron Jahja's avatar Rron Jahja
Browse files

Resolved PR comments.

parent d9a548c1
......@@ -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;
});
......
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