Removed invitedBy from signup routes (#1087)

refs https://github.com/TryGhost/Ghost/issues/10286

- not used
- looking for more information? visit https://github.com/TryGhost/Ghost/pull/10291
This commit is contained in:
Katharina Irrgang 2018-12-17 11:57:26 +01:00 committed by Kevin Ansfield
parent 895d55f4a4
commit c2d9ea8e1c
2 changed files with 1 additions and 6 deletions

View File

@ -64,8 +64,6 @@ export default Route.extend(styleBody, UnauthenticatedRouteMixin, {
return resolve(this.transitionTo('signin'));
}
signupDetails.set('invitedBy', response.invitation[0].invitedBy);
// set blogTitle, so password validation has access to it
signupDetails.set('blogTitle', this.get('config.blogTitle'));

View File

@ -34,14 +34,11 @@ export default function mockAuthentication(server) {
server.get('/authentication/invitation/', function (schema, request) {
let {email} = request.queryParams;
let invite = schema.invites.findBy({email});
let user = schema.users.find(invite.createdBy);
let valid = !!invite;
let invitedBy = user && user.name;
return {
invitation: [{
valid,
invitedBy
valid
}]
};
});