Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login feedback if user do not have offline access #39561

Conversation

carlitorweb
Copy link
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
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
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
Member Author

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

@Quy
Copy link
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
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
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
@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
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