Skip to content

Commit 2639cb9

Browse files
committed
fix satellizer warning expecting a token issue #202
1 parent 254a84f commit 2639cb9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

angular/app/components/login-form/login-form.component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class LoginFormController {
1616

1717
this.$auth.login(user)
1818
.then((response) => {
19-
this.$auth.setToken(response.data.data.token);
19+
this.$auth.setToken(response.data);
2020
});
2121
}
2222
}

angular/config/satellizer.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ export function SatellizerConfig($authProvider) {
77

88
$authProvider.loginUrl = '/api/auth/login';
99
$authProvider.signupUrl = '/api/auth/register';
10+
$authProvider.tokenRoot = 'data';//compensates success response macro
1011

1112
}

0 commit comments

Comments
 (0)