Skip to content

Commit 6bfc1da

Browse files
committed
chore(auth.service): changePassword does not receive success data
1 parent 1bfcc1f commit 6bfc1da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/templates/client/components/auth(auth)/auth.service(coffee).coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ angular.module '<%= scriptAppName %>'
7373
oldPassword: oldPassword
7474
newPassword: newPassword
7575

76-
, (user) ->
77-
callback? null, user
76+
, () ->
77+
callback? null
7878

7979
, (err) ->
8080
callback? err

app/templates/client/components/auth(auth)/auth.service(js).js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ angular.module('<%= scriptAppName %>')
8484
return User.changePassword({ id: currentUser._id }, {
8585
oldPassword: oldPassword,
8686
newPassword: newPassword
87-
}, function(user) {
88-
return safeCb(callback)(null, user);
87+
}, function() {
88+
return safeCb(callback)(null);
8989
}, function(err) {
9090
return safeCb(callback)(err);
9191
}).$promise;

0 commit comments

Comments
 (0)