Skip to content

Instantly share code, notes, and snippets.

@LeoNero
Created November 14, 2016 23:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeoNero/5a1c97375106d40ed9f9748304112980 to your computer and use it in GitHub Desktop.
Save LeoNero/5a1c97375106d40ed9f9748304112980 to your computer and use it in GitHub Desktop.
default/login/login.js
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