Skip to content

Commit

Permalink
chore: improve error message to help with infra ops
Browse files Browse the repository at this point in the history
  • Loading branch information
janaka committed Oct 30, 2023
1 parent 4e0462e commit f2f8abb
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit f2f8abb

Please sign in to comment.