When a user login fails for any reason (validation of the CAS service ticket failed, or an event subscriber prevented login), we currently set a hard-coded generic error message and return users to a custom page set in the settings (if set), the page they were previously on (if available), or the homepage.

When a user logs in, we set a generic hard coded login message.

All the hard coded messages should be customizable by the admins.

Comments

bkosborne created an issue. See original summary.

bkosborne’s picture

Title: Allow customization of behavior when CAS ticket validation or user login fails » Allow specifying custom error and login messages
Issue summary: View changes
Related issues: +#3039526: Prevent authentication redirect loop during login failure
bkosborne’s picture

Status: Active » Needs review
StatusFileSize
new17.99 KB

This patch allows the customization of the following messages:

- Login success
- Login failure: Error when validating CAS ticket
- Login failure: Auto registration disabled, and local user account does not exist
- Login failure: Event subscriber denied automatic registration
- Login failure: Event subscriber denied login
- Login failure: Local account is blocked
- Login failure: Auto registration failed because local account exists with same username

  • bkosborne committed 7c40fc1 on 8.x-1.x
    Issue #3013524 by bkosborne: Allow specifying custom error and login...
bkosborne’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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