Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement