mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
Merge pull request #3398 from morficus/issue-3396
Fixing resend user invitation
This commit is contained in:
commit
ce483a916a
1 changed files with 5 additions and 3 deletions
|
@ -53,9 +53,11 @@ var User = DS.Model.extend(NProgressSaveMixin, ValidationEngine, {
|
|||
},
|
||||
|
||||
resendInvite: function () {
|
||||
var userData = {};
|
||||
|
||||
userData.email = this.get('email');
|
||||
var fullUserData = this.toJSON(),
|
||||
userData = {
|
||||
email: fullUserData.email,
|
||||
roles: fullUserData.roles
|
||||
};
|
||||
|
||||
return ic.ajax.request(this.get('ghostPaths.url').api('users'), {
|
||||
type: 'POST',
|
||||
|
|
Loading…
Add table
Reference in a new issue