mirror of
https://github.com/Febbweiss/CloudBudget-AngularJS.git
synced 2026-03-04 22:35:38 +00:00
Bugfix: right way to get login data
This commit is contained in:
@@ -17,11 +17,11 @@
|
||||
|
||||
function login(username, password ) {
|
||||
return $http.post( apiRoutes.login, {username: username, password: password})
|
||||
.then(function(response, status) {
|
||||
if( status === 200 ) {
|
||||
.then(function(response) {
|
||||
if( response.status === 200 ) {
|
||||
return {
|
||||
success: true,
|
||||
user: response
|
||||
user: response.data
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user