No Code Attached Yet
avatar joomleb
joomleb
22 Jul 2022

Hi guys,
case study: When we set a frontend Login Form and / or Registration Form menu item the most used / logic ACL Access setting is "Guest":

  • not "Public" because the Login Form menu item Name used is "Login", so when I'm logged I don't want to see it and we are used to create a Logout menu item (ACL Registered) which will replace the "Login" menu item
  • not "Public" because the Register Form menu item Name used is "Register", it is a Register Form and when I'm logged I'm obviously yet Registered. Usually it will be replaced by a User Profile menu item (ACL Registered)
  • and never "Registered" simply because obviously if I'm Logged I'm yet Registered and I don't need to Register and/or to Login

Now:

  • I'm displaying the frontend Login Form - Login test page
    and / or Registration Form menu item page - Registration test page
  • I login through the Login module (on the bottom on the pages) with "Module > Login Redirection Page: -Select Menu Item-" setting that should mean "Same Page"
  • the Login Form / Registration Form menu item ACL Access setting is set to "Guest"
  • so, I'm logged, but automatically I'm redirected to the home page and a Danger Alert is shown: "You don't have permission to access this. Please contact a website administrator if this is incorrect."

This is the worst User Experience and Users panic thinking they have done something wrong.

Solution:

A - just for the Login Form / Registration Form menu items, if I have no the ACL Access permission, I'm automatically redirected to the home page, Okay, but the ACL Danger Alert should never been shown
Do you agree ?

OR Better Solution
B - for them, when I have no the ACL Access permission, I will be redirected to:

  • for the the Login Form menu item, to the "Options > Menu Item Login Redirect: ..." setting
  • for the Registration Form menu item, to the "Options > Menu Item Registration Redirect: …" mentioned here #37566
avatar joomleb joomleb - open - 22 Jul 2022
avatar joomleb joomleb - change - 22 Jul 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jul 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Jul 2022
avatar joomleb joomleb - change - 22 Jul 2022
Title
Login & Registration Redirections issue
[4.2] Login & Registration Redirections issue
avatar joomleb joomleb - edited - 22 Jul 2022
avatar joomleb joomleb - change - 22 Jul 2022
Title
[4.2] Login & Registration Redirections issue
[4.2] Login & Registration pages Redirections issue
avatar joomleb joomleb - edited - 22 Jul 2022
avatar richard67
richard67 - comment - 22 Jul 2022

When we set a frontend Login Form and / or Registration Form menu item the most used / logic ACL Access setting is "Guest" (not Public because and never Registered).

Not public because of what? Is there something missing in this sentence?

avatar richard67
richard67 - comment - 22 Jul 2022

Maybe you just don’t understand the purpose of the „Guest“ access level? While „Public“ includes also what registered, logged in users can see, „Guest“ doesn’t, and that’s how it shall be.

avatar brianteeman
brianteeman - comment - 22 Jul 2022

Something is not correct in your description. If I follow the description then I have no problem.

I am guessing that the instruction that is missing is that you have set the defaultt menu item as the login registration form?

avatar joomleb joomleb - edited - 22 Jul 2022
avatar joomleb joomleb - change - 22 Jul 2022
The description was changed
avatar joomleb
joomleb - comment - 22 Jul 2022

@richard67

Not public because of what? Is there something missing in this sentence?

Sorry, I corrected it in the original post

avatar joomleb joomleb - change - 22 Jul 2022
The description was changed
avatar joomleb joomleb - edited - 22 Jul 2022
avatar joomleb
joomleb - comment - 22 Jul 2022

@brianteeman

I am guessing that the instruction that is missing is that you have set the defaultt menu item as the login registration form?

I'm not sure I understood what you mean, but No.
With the Login module (on the bottom on the pages) setting "Module > Login Redirection Page: -Select Menu Item-" that should mean "Same Page".
I reformulate the original post to better explain what I mean and I added test pages links hooping this can help to understand me... I remain available

avatar joomleb joomleb - change - 22 Jul 2022
The description was changed
avatar joomleb joomleb - edited - 22 Jul 2022
avatar brianteeman
brianteeman - comment - 22 Jul 2022

ok I understand you now. This will of course happen and it is working as designed.

  1. public => visible to all
  2. guest => visible to unregistered
  3. registered => visible to logged in

You have login & registration menu items that are set to guest. Therefore registered and logged in users have no access to thos menu items.

You have set the module to stay on the same page after log in but you no longer have access to that page - hence the error message which is correct.

This is exactly why both the login module and the login component have options for where to go after successfully logging in.

avatar joomdonation joomdonation - change - 13 Nov 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-11-13 10:19:45
Closed_By joomdonation
avatar joomdonation joomdonation - close - 13 Nov 2022
avatar joomdonation
joomdonation - comment - 13 Nov 2022

As @brianteeman pointed out, it is working as expected (see his previous comment). So I'm closing this issue.

avatar joomleb joomleb - change - 13 Nov 2022
The description was changed
avatar joomleb joomleb - edited - 13 Nov 2022
avatar joomleb
joomleb - comment - 14 Nov 2022

Hi guys,
Please, read carefully the use case I described in the first post.
I did not said that is not working as expected.
What I said is that in these 2 specific use cases (login form and registration form menu items pages), to show the standard ACL error Danger message and automatically redirect to the homepage is not the best thing for the User Experience.

Why ?

  • As user I'm on those pages and my intent is to log in
  • When I click I'm logged with success
  • But the Danger Alert tell me: "You don't have permission to access this. Please contact a website administrator if this is incorrect."
  • So, the user understand that he hes not logged with success and he has to contact the administrator

The Solution is super simple and just by using features concept that are yet added into Joomla:

A - Alert Message
just for the Login Form / Registration Form menu items, if I have no the ACL Access permission, I'm automatically redirected to the home page, as now (okay), but the ACL Danger Alert should never been shown ...just it.

OR to call a different language string within an Info / Message Alert.

B - Page Redirection
AND,, for a better solution, always for the Login Form / Registration Form menu items pages, when I have no the ACL Access permission, I will be redirected to:

  • the "Options > Menu Item Login Redirect: ..." setting for the Login Form menu item
  • the "Options > Menu Item Registration Redirect: …" setting for the Registration Form menu item that, right now, it is a missing and it is mentioned here #37566

Add a Comment

Login with GitHub to post a comment