mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Merge branch 'master' of https://bitbucket.org/equilibriumito/gabinete-digital into master
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<ion-input type="text" name="domainName" [(ngModel)]="postData.domainName"></ion-input>
|
||||
</ion-item>
|
||||
|
||||
<ion-button expand="block" shape="round" color="primary" (click)="simpleLogin()">Entrar</ion-button>
|
||||
<ion-button expand="block" shape="round" color="primary" (click)="simpleLogin()">Entrar</ion-button>
|
||||
</ion-list>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -81,18 +81,22 @@ export class LoginPage implements OnInit {
|
||||
}*/
|
||||
}
|
||||
|
||||
simpleLogin(){
|
||||
async simpleLogin(){
|
||||
//Go to our home in home/feed.
|
||||
|
||||
if(this.validateInput()){
|
||||
this.router.navigate(['/home/feed']);
|
||||
console.log(this.postData);
|
||||
if (await this.authService.login(this.postData))
|
||||
{
|
||||
this.router.navigate(['/home/feed']);
|
||||
console.log(this.postData);
|
||||
}
|
||||
else
|
||||
{
|
||||
console.log("Não foi possível fazer login");
|
||||
}
|
||||
}
|
||||
else{
|
||||
console.log("Preencha todos campos");
|
||||
|
||||
|
||||
console.log("Preencha todos campos");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user