zikula/core — pull request #1407 by cmfcmf (2013-11-19 17:39:40+00:00)
Title: Redirect to registration

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | ---
| Fixed tickets | ---
| Refs tickets | #901, https://github.com/zikula-modules/OpenID/issues/1
| License | MIT
| Doc PR | ---

Authentication modules now can implement a new function named `redirectToRegistrationOnLoginError()` to indicate whether or not the user should be redirected to the registration page if the given credentials on login are wrong. This is usefull for the OpenID module. If you click "Login with Google", and don't have an account, you are redirected to the registration page. I'll push the changes for OpenID in a minute.