Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Improve error message to help with infra ops #137

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/utils/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,8 @@ def signup_ui() -> None:
st.markdown('Already have an account? Login <a href="/" target="_self">here</a>.', unsafe_allow_html=True)

if not handle_check_mailer_ready():
log.error("Mailer not available. User self signup disabled.")
st.error("Unable to create personal accounts")
log.error("Mailer service not available due to a config problem. User self signup disabled. All the following env vars needs to be set: DOCQ_SMTP_SERVER, DOCQ_SMTP_PORT, DOCQ_SMTP_LOGIN, DOCQ_SMTP_KEY, DOCQ_SMTP_FROM, DOCQ_SERVER_ADDRESS. Refer to he `misc/secrets.toml.template` in the repo for details.")
st.error("Unable to create personal accounts.")
st.info("Please contact your administrator to help you create an account.")
st.stop()

Expand Down