Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Removed invitedBy from signup routes (#1087)
Browse files Browse the repository at this point in the history
refs TryGhost/Ghost#10286

- not used
- looking for more information? visit TryGhost/Ghost#10291
  • Loading branch information
kirrg001 authored and kevinansfield committed Dec 17, 2018
1 parent 58ab778 commit d27c067
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions app/routes/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand Down
5 changes: 1 addition & 4 deletions mirage/config/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}]
};
});
Expand Down

0 comments on commit d27c067

Please sign in to comment.