implemented icon buttons, array input, reformatting, minor sample component improvements
This commit is contained in:
@ -33,8 +33,6 @@ export class LoginService implements CanActivate {
|
||||
|
||||
login(username = '', password = '') {
|
||||
return new Promise(resolve => {
|
||||
console.log(username);
|
||||
console.log(password);
|
||||
if (username !== '' || password !== '') { // some credentials given
|
||||
let credentials: string[];
|
||||
const credentialString: string = this.storage.get('basicAuth');
|
||||
@ -54,7 +52,6 @@ export class LoginService implements CanActivate {
|
||||
this.storage.set('basicAuth', btoa(credentials[0] + ':' + password));
|
||||
}
|
||||
}
|
||||
console.log(this.storage.get('basicAuth'));
|
||||
this.api.get('/authorized', (data: any, error) => {
|
||||
if (!error) {
|
||||
if (data.status === 'Authorization successful') {
|
||||
|
Reference in New Issue
Block a user