Login forms do not have registration

Hi!
Your manual states:
"login_with_form([show_signup_option=True], [remember_by_default=True], [allow_remembered=True], [allow_cancel=False])

Display a login form and allow user to log in. Returns user object if logged in, or None if cancelled.
show_signup_option: if True, the form will also show the option to sign up for a new account."
But, then i add:
“anvil.users.login_with_form(show_signup_option=True)”
i get a form without the ability to register a new user.

What am I doing wrong?

Can you quickly check if you have “Allow Visitors to Sign up” enabled in the “Users” module, under “Services”?

6 Likes

Yes, that was the problem! Thanks for your reply.

2 Likes

This one bit me too. I was getting very frustrated until I found this!
While I admit this wound was entirely self-inflicted, I suspect it’s a not uncommon experience, and might warrant a small update in the docs to point out this particular gotcha.