feat(dashboard, user): prefill invite email (#9016)
**What** - store invite email on the JWT invite token - prefill email in the invite form --- RESOLVES CC-125
This commit is contained in:
1 parent
fde2a9b9be
commit
440f598de8
2 files changed
+5
-3
No files matched your search
@@ -157,7 +157,7 @@ export default class UserModuleService
|
||||
expires_at: new Date().setMilliseconds(
|
||||
new Date().getMilliseconds() + this.config.expiresIn
|
||||
),
|
||||
token: this.generateToken({ id: invite.id }),
|
||||
token: this.generateToken({ id: invite.id, email: invite.email }),
|
||||
}
|
||||
})
|
||||
|
||||
@@ -316,7 +316,7 @@ export default class UserModuleService
|
||||
expires_at: new Date().setMilliseconds(
|
||||
new Date().getMilliseconds() + this.config.expiresIn
|
||||
),
|
||||
token: this.generateToken({ id: invite.id }),
|
||||
token: this.generateToken({ id: invite.id, email: invite.email }),
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user