mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
Merge pull request #5534 from Remchi/bug-invite-user
Invited user can sign up successfully
This commit is contained in:
commit
5998f3133d
@ -45,7 +45,9 @@ export default Ember.Controller.extend(ValidationEngine, {
|
|||||||
});
|
});
|
||||||
}).catch(function (errors) {
|
}).catch(function (errors) {
|
||||||
self.toggleProperty('submitting');
|
self.toggleProperty('submitting');
|
||||||
notifications.showErrors(errors);
|
if (errors) {
|
||||||
|
notifications.showErrors(errors);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import Ember from 'ember';
|
import Ember from 'ember';
|
||||||
|
import DS from 'ember-data';
|
||||||
import {request as ajax} from 'ic-ajax';
|
import {request as ajax} from 'ic-ajax';
|
||||||
import Configuration from 'simple-auth/configuration';
|
import Configuration from 'simple-auth/configuration';
|
||||||
import styleBody from 'ghost/mixins/style-body';
|
import styleBody from 'ghost/mixins/style-body';
|
||||||
@ -35,6 +36,7 @@ export default Ember.Route.extend(styleBody, {
|
|||||||
|
|
||||||
model.set('email', email);
|
model.set('email', email);
|
||||||
model.set('token', params.token);
|
model.set('token', params.token);
|
||||||
|
model.set('errors', DS.Errors.create());
|
||||||
|
|
||||||
return ajax({
|
return ajax({
|
||||||
url: self.get('ghostPaths.url').api('authentication', 'invitation'),
|
url: self.get('ghostPaths.url').api('authentication', 'invitation'),
|
||||||
|
Loading…
Reference in New Issue
Block a user