Skip to content

Show friendly message on /import when CONNECT_WITH_FRANZ is disabled - #165

Open
marek-knappe wants to merge 1 commit into
ferdium:mainfrom
marek-knappe:feat/import-page-disabled-message
Open

Show friendly message on /import when CONNECT_WITH_FRANZ is disabled#165
marek-knappe wants to merge 1 commit into
ferdium:mainfrom
marek-knappe:feat/import-page-disabled-message

Conversation

@marek-knappe

Copy link
Copy Markdown

Summary

  • When CONNECT_WITH_FRANZ=false, the /import page now shows a clear message instead of a login form that errors after submission
  • The form is hidden entirely — users see an explanation that imports are disabled, a suggestion to create a new account, and a login link
  • Server admins get instructions on how to enable imports via the env var

Test plan

  • Set CONNECT_WITH_FRANZ=false and visit /import — should show the disabled message, no form
  • Set CONNECT_WITH_FRANZ=true and visit /import — should show the original login form

Instead of showing the Franz/Ferdi login form and erroring after
submission, the /import page now displays an informative message
explaining that imports are disabled and suggesting to create a
new account directly.
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.

1 participant