Receive the resetToken in the webadmin

This commit is contained in:
Johannes Zellner
2016-04-04 18:15:24 +02:00
parent fcfd1dceac
commit 8f2b0bae5e
2 changed files with 4 additions and 2 deletions

View File

@@ -153,10 +153,12 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
};
$scope.sendInvite = function (user) {
Client.sendInvite(user.username, function (error) {
Client.sendInvite(user.username, function (error, resetToken) {
if (error) return console.error(error);
Client.notify('', 'Invitation was successfully sent to ' + user.email + '.', false, 'success');
console.log('----', resetToken)
});
};