I set domain to yahoo.com and tried to register using gmail. Got the error message below.
def get_register(authenticator):
try:
if authenticator.register_user(
location='main',
preauthorization=False,
domains=['yahoo.com'],
fields={'Form name': 'Register user'}
):
save_config_to_deta(config)
st.success('Registration is successful!')
except Exception as e:
st.error(e)
To improve the error message, perhaps you need to mention that only the domains found in domains are supported. In this case, only yahoo. The reason is to inform the users of the real reason why their emails are not accepted.
I set domain to yahoo.com and tried to register using gmail. Got the error message below.
To improve the error message, perhaps you need to mention that only the domains found in domains are supported. In this case, only yahoo. The reason is to inform the users of the real reason why their emails are not accepted.
It can be:
Only emails from {domains} are supported.
Setup