Skip to content

fix: hide Create new account button when signup is disabled#77

Open
Vi-Ku wants to merge 1 commit intodonetick:mainfrom
Vi-Ku:fix/hide-signup-when-disabled-602
Open

fix: hide Create new account button when signup is disabled#77
Vi-Ku wants to merge 1 commit intodonetick:mainfrom
Vi-Ku:fix/hide-signup-when-disabled-602

Conversation

@Vi-Ku
Copy link
Copy Markdown

@Vi-Ku Vi-Ku commented Mar 27, 2026

Summary

Hides the "Create new account" button on the login page when is_user_creation_disabled is true, instead of showing the button and blocking with an error after the signup form is filled.

Changes

Related

Before / After

Before: The "Create new account" button is always visible, and clicking it leads to a signup form that returns a 403 error when signup is disabled — confusing for users.

After: When is_user_creation_disabled is true, the button is hidden entirely from the login page.

When is_user_creation_disabled is true in the /resource API response,
hide the 'Create new account' button on the login page entirely instead
of showing it and blocking with an error after the form is filled.

Fixes: donetick/donetick#602
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.

[UX] is_user_creation_disabled should hide "Create new account" button

1 participant