Skip to content

Follow-up: Consider if the page is accessible by current user before using simplified display #6815

Closed
backdrop/backdrop
#4984
@indigoxela

Description

@indigoxela

Description of the bug

Issue #6570 added simplified login path displays for three paths, Issue #6799 extended it to allow also the default theme to be used.

What we didn't consider:

If user registration is disabled on a site, this path will lead to a 403, but still with the simplified display (the admin theme) ... and that looks awkward.

Steps To Reproduce

Requires latest dev.

  1. Go to admin/config/people/login and verify, the simplified display's turned on, using the admin theme
  2. Go to admin/config/people/settings and verify that anonymous may not register accounts
  3. In a different browser or a browser window without session go to user/register

Actual behavior

It's a 403, of course, as expected, but wow, that page looks odd.

user-register-403

The same weird display probably happens, when flood prevention strikes. Edit: it doesn't,

Expected behavior

If the site doesn't have user registration enabled, the simplified page display makes no sense for that path. Same if the page isn't accessible for other reasons. Deliver regular 403 pages instead.

Additional information

  • Backdrop CMS version: 1.30.x-dev

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions