Created
November 14, 2016 23:16
-
-
Save LeoNero/5a1c97375106d40ed9f9748304112980 to your computer and use it in GitHub Desktop.
default/login/login.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
login() { | |
let loginData = { | |
username: this.username, | |
password: this.password, | |
school: this.selectedSchool //this.selectSchool retorna o ID da escola, e não o Object | |
}; | |
this.authService | |
.login(loginData) | |
.then(response => { | |
this.aurelia.setRoot('app'); | |
}) | |
.catch(err => { | |
console.log("Login failure : " + err); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment