Skip to content

feat(auth): skip email check flow when verification is disabled#1072

Open
Slx-hub wants to merge 1 commit intostoatchat:mainfrom
Slx-hub:feat/auto-login-when-email-verification-disabled
Open

feat(auth): skip email check flow when verification is disabled#1072
Slx-hub wants to merge 1 commit intostoatchat:mainfrom
Slx-hub:feat/auto-login-when-email-verification-disabled

Conversation

@Slx-hub
Copy link
Copy Markdown

@Slx-hub Slx-hub commented Mar 28, 2026

Hey i tumbled in here from the Self-Host community! The Readme stated that with email verification disabled the Page still prompts the user to check his mail, a message that i have to forward to every user during onboarding. So i set out to fix that!

It simply checks the client config, analog to "isInviteOnly", and then either routes the old way or directly executes login for the user with the readily available credentials and then forwards him to the username selection.

I tested it by adding and removing an [api.smtp] connection to the toml for a local mailpit instance.

UI flow without email verification:
stoat_no_mail

UI flow with email verification:
stoat_with_mail

@Slx-hub Slx-hub requested review from a team as code owners March 28, 2026 23:53
@Dadadah
Copy link
Copy Markdown
Member

Dadadah commented Mar 29, 2026

I think this is a duplicate of #760

@Slx-hub
Copy link
Copy Markdown
Author

Slx-hub commented Mar 29, 2026

I think this is a duplicate of #760

Ah well, it sure is! 😅
I take it as learning experience..
I'd argue that mine looks a little nicer but functionally it's exactly the same. so as long as it's getting fixed

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.

2 participants