fix invite token logic
This commit is contained in:
parent
efaaece842
commit
ddf1b63313
@ -138,10 +138,13 @@ export class SignUpForm extends LiteElement {
|
|||||||
newArchive: true,
|
newArchive: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.inviteToken && this.isArchiveInvite) {
|
if (this.inviteToken) {
|
||||||
registerParams.inviteToken = this.inviteToken;
|
registerParams.inviteToken = this.inviteToken;
|
||||||
|
|
||||||
|
if (this.isArchiveInvite) {
|
||||||
registerParams.newArchive = false;
|
registerParams.newArchive = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const resp = await fetch("/api/auth/register", {
|
const resp = await fetch("/api/auth/register", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user