Advertisement
Guest User

Untitled

a guest
Nov 14th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. login() {
  2. let loginData = {
  3. username: this.username,
  4. password: this.password,
  5. school: this.selectedSchool //this.selectSchool retorna o ID da escola, e não o Object
  6. };
  7.  
  8. this.authService
  9. .login(loginData)
  10. .then(response => {
  11. this.aurelia.setRoot('app');
  12. })
  13. .catch(err => {
  14. console.log("Login failure : " + err);
  15. });
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement