Skip to content

Login feedback if user do not have offline access#39561

Merged
fancyFranci merged 9 commits intojoomla:4.2-devfrom
carlitorweb:4.2/issue/39559/no_offline_access_feedback
Feb 26, 2023
Merged

Login feedback if user do not have offline access#39561
fancyFranci merged 9 commits intojoomla:4.2-devfrom
carlitorweb:4.2/issue/39559/no_offline_access_feedback

Conversation

@carlitorweb
Copy link
Copy Markdown
Member

Pull Request for Issue #39559

I used the core string JLIB_LOGIN_DENIED = Your access has been denied. But I think we should create a new one just for this message

Summary of Changes

PlgAuthenticationJoomla verified is a valid user who try to access, but not check the permission of the offline mode.

Testing Instructions

Set your site in offline mode. Go to the frontend and try login with a user who have the permission Offline Access = Not allowed

Actual result BEFORE applying this Pull Request

The user cant login, but not message show up of why cant login

Expected result AFTER applying this Pull Request

The user cant login, but a message show up of why cant login

@richard67
Copy link
Copy Markdown
Member

@carlitorweb As the check added by this PR is in the else part of an $this->app->isClient('administrator') check, it doesn't only apply to the site but also to other non-admin clients like api and cli. Is that intended?

@carlitorweb
Copy link
Copy Markdown
Member Author

carlitorweb commented Jan 6, 2023

@richard67 For API dont matter. Right now, an unique Bearer token or credentials need be provided in the request. The later have his own separate routine for authenticate the user Joomla\Plugin\ApiAuthentication\Basic\Extension\Basic (by the way is almost the same as PlgAuthenticationJoomla)

I did not interact much with the CLI yet, but I tested for example, when offline the site I could add a new user trought the CLI without problem. I not think so far this change affect the CLI application. Anyway, let me kown if anything need be changed.

@carlitorweb
Copy link
Copy Markdown
Member Author

@richard67 can you run the drone again, not sure why fail

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jan 23, 2023

I have tested this item ✅ successfully on 0f48b71


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39561.

1 similar comment
@viocassel
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 0f48b71


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39561.

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jan 25, 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39561.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 25, 2023
Comment thread plugins/authentication/joomla/joomla.php Outdated
Comment thread plugins/authentication/joomla/joomla.php Outdated
@fancyFranci fancyFranci merged commit 2a8b6bb into joomla:4.2-dev Feb 26, 2023
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Feb 26, 2023
@fancyFranci fancyFranci added this to the Joomla! 4.2.9 milestone Feb 26, 2023
@fancyFranci
Copy link
Copy Markdown
Contributor

Thank you for making it easier for the users!

@carlitorweb carlitorweb deleted the 4.2/issue/39559/no_offline_access_feedback branch May 12, 2024 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants