mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
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:
parent
895d55f4a4
commit
c2d9ea8e1c
@ -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'));
|
||||
|
||||
|
@ -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
|
||||
}]
|
||||
};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user