Skip to content

feat: Add an invite code input to the registration page#698

Closed
Dadadah wants to merge 1 commit intostoatchat:mainfrom
Dadadah:feature/invite_only
Closed

feat: Add an invite code input to the registration page#698
Dadadah wants to merge 1 commit intostoatchat:mainfrom
Dadadah:feature/invite_only

Conversation

@Dadadah
Copy link
Member

@Dadadah Dadadah commented Feb 13, 2026

Add an invite code input to the registration page. Uses a memo to determine if the invite code input should be shown.

Requires stoatchat/javascript-client-sdk#127 due to the configuration currently not being loaded automatically by the javascript client sdk.

Resolves #639

Toggles an invite code input on the registration page based on the configuration. Uses a memo to enable reactivity based on the configuraiton being loaded.

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
@Dadadah Dadadah force-pushed the feature/invite_only branch from d3d9ab7 to 5b1658d Compare February 20, 2026 02:43
const email = data.get("email") as string;
const password = data.get("password") as string;
const captcha = data.get("captcha") as string;
const invite = data.get("invite") as string;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could I propose looking for an ?invite=code qs and setting invite to that value if data.get("invite") returns an empty string? It would make the signup flow for invited users a lot more straightforward.

Alternatively the qs code could prefill the invite field.

Either way this results in the user being registered not having to know anything about invite only functionality and/or copy pasting codes, but also gives them the flexibility to easily override the invite code from the qs with whatever they want if necessary.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea. However, it's unlikely this pr will get merged, please leave the same comment on #769

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why this isn't getting merged? I assume the other PR is better bc no client dep?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other PR has better flow and better UI. I'd rather it depend on this dependency, especially since this is for self hosted. If the dependency gets merged I may speak with the author of that pr to implement it.

@Dadadah Dadadah closed this Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Client doesn't support invite-only mode

2 participants