When I try to log in with an unknown e-mail I get the registration page correctly, but after I click submit I get the "User not found, fill out the form or try to log in as another user" message and am redirected to the home page, without being logged in. If I try to log in again it works.

Comments

icecreamyou’s picture

That's weird. I just tried it locally and I am correctly registered and signed in but I get the "The email address
is not registered on localhost. You can register below, or try again with a different email address" message. Probably what's happening is browserid_form_user_register_form_alter() gets run twice somehow, although I have no idea why that would be happening.

barraponto’s picture

Status: Active » Closed (works as designed)

Visit admin/config/people/accounts#edit-user-register and make sure visitors don't need the administrator's approval to register.

icecreamyou’s picture

Priority: Normal » Minor
Status: Closed (works as designed) » Active

Ah, right. Forgot about that. The module should prevent this issue from happening though, or at least warn administrators that it could happen. Reopening to make that fix.

barraponto’s picture

I faced this problem while using OAuthConnector as well. I remember there was an issue about it as well, but I just can't find it again. What would be a good approach in this case? I don't think showing anonymous users a warning message is a good idea...

icecreamyou’s picture

If we can't stop this from happening, BrowserID can at least notify administrators that the settings will produce errors for users.

icecreamyou’s picture

Status: Active » Fixed

Added a warning to the settings page if the user registration setting does not allow anonymous users to sign up.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.