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

[4.3] Message after a login / logout frontend #30834

Merged
merged 29 commits into from
Oct 22, 2022
Merged

Conversation

sandewt
Copy link
Contributor

@sandewt sandewt commented Oct 1, 2020

Pull Request for Issue # .

New feature, see #30767

Summary of Changes

There is a message after a successfully login and logout in the frontend.

Messages

new_feature_messages_3
new_feature_messages_2
[EDIT] Removed successfully from the text in message.

Users: Options

new_feature_messages_4
[EDIT] Removed

Testing Instructions

Backend: Go to Users > Manage > Options
(Frontend: Is not applicable.)

Set the options:

  • Frontend Login Message (= Yes, default = No)
  • Frontend Logout Message (= Yes, default = No)

Create a menu link:

  • Menu Login form
  • Menu Logout form
  1. Log in and out, in case of a:
  • Login form (default)
  • Menu Login form
  • Menu Logout form
  1. Code review (developers);
  • Check if the code is correct and secure.

Actual result BEFORE applying this Pull Request

There is NOT showing a message after a suscessfully login or logout.

Expected result AFTER applying this Pull Request

  • There is showing a message after a suscessfully login.
  • There is showing a message after a suscessfully logout.

Documentation Changes Required

Yes.

@sandewt sandewt changed the title Message after a login / logout [4.] Message after a login / logout Oct 1, 2020
@joomla-cms-bot joomla-cms-bot added the Language Change This is for Translators label Oct 1, 2020
@HLeithner
Copy link
Member

Please rebase on 4.1-dev

@sandewt sandewt changed the title [4.] Message after a login / logout [4.x] Message after a login / logout Oct 1, 2020
name="frontend_login_message" =>  name="frontend_login"
filter="boolean " => filter="integer"
frontend_login => frontend_login_message
Whitespaces
@sandewt sandewt changed the title [4.x] Message after a login / logout [4.0] Message after a login / logout Oct 1, 2020
@sandewt
Copy link
Contributor Author

sandewt commented Oct 1, 2020

Please rebase on 4.1-dev

It's just a small extension, a new feature might be a bit exaggerated. Or is there some other argument?


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

@sandewt sandewt changed the title [4.0] Message after a login / logout [4.0] Message after a login / logout frontend Oct 1, 2020
language/en-GB/com_users.ini Outdated Show resolved Hide resolved
@maikol-ortigueira
Copy link

I have tested this item ✅ successfully on 963ad7d

I have tested the patch and it works perfectly


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

@pabloarias
Copy link

I have tested this item ✅ successfully on 963ad7d

Tested successfully on Joomla 4.0.0-beta5-dev and PHP 7.3.22-1

Thank you!


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

@alikon
Copy link
Contributor

alikon commented Oct 1, 2020

i'll not set this PR as RTC despite 2 good tests cause of #30834 (comment)
i'll let the final decision to RL's

@brianteeman
Copy link
Contributor

We might as well all go home if this wont get merged

@sandewt
Copy link
Contributor Author

sandewt commented Oct 1, 2020

Some checks were not successful: continuous-integration/drone/pr — Build is failing

What does this mean? Action?

[EDIT] I see that this problem has resolved itself.

@HLeithner
Copy link
Member

We might as well all go home if this wont get merged

We have 27 release blocker and most of the time I only see some new stuff if no one fixes the release blocker and only add new fancy stuff then you are right and we can go home.
https://github.com/joomla/joomla-cms/issues?q=is%3Aopen+is%3Aissue+label%3A"Release+Blocker"

@sandewt
Copy link
Contributor Author

sandewt commented Oct 2, 2020

We have 27 release blocker and most of the time I only see some new stuff if no one fixes the release blocker and only add new fancy stuff then you are right and we can go home.

I will close this PR and make a new PR based on [4.1].

@HLeithner HLeithner changed the base branch from 4.0-dev to 4.1-dev October 2, 2020 07:46
@HLeithner
Copy link
Member

You don't need to, I changed your target branch to 4.1-dev

@sandewt
Copy link
Contributor Author

sandewt commented Oct 2, 2020

You don't need to, I changed your target branch to 4.1-dev

I see it has already happened. 😃

Thanks.

@sandewt sandewt changed the title [4.0] Message after a login / logout frontend [4.1] Message after a login / logout frontend Oct 2, 2020
@richard67 richard67 added Updates Requested Indicates that this pull request needs an update from the author and should not be tested. psr12 labels Jun 28, 2022
@laoneo laoneo changed the base branch from 4.2-dev to 4.3-dev October 21, 2022 10:29
@laoneo laoneo removed Updates Requested Indicates that this pull request needs an update from the author and should not be tested. PR-4.2-dev labels Oct 21, 2022
@laoneo laoneo changed the title [4.2] Message after a login / logout frontend [4.3] Message after a login / logout frontend Oct 21, 2022
@drmenzelit drmenzelit added this to the Joomla! 4.3.0 milestone Oct 22, 2022
@drmenzelit drmenzelit merged commit f0b6a6c into joomla:4.3-dev Oct 22, 2022
@drmenzelit
Copy link
Contributor

Thanks

@sandewt
Copy link
Contributor Author

sandewt commented Oct 23, 2022

Your comment here #30834 (comment) may need some further investigation in a separate issue.

@drmenzelit

Something went wrong here. This PR is merged to joomla 4.3. That shouldn't have happened.
Because this PR is not working.

@sandewt
Copy link
Contributor Author

sandewt commented Oct 23, 2022

Removing the if statement makes this PR work. The question is whether that is desirable. See the discussion above.

Change this:

// Show a message when a user is logged out.
if ($app->getIdentity()->guest) {
    $app->enqueueMessage(Text::_('COM_USERS_FRONTEND_LOGOUT_SUCCESS'), 'message');
}

To:

// Show a message when a user is logged out.
$app->enqueueMessage(Text::_('COM_USERS_FRONTEND_LOGOUT_SUCCESS'), 'message');

bembelimen added a commit to bembelimen/joomla-cms that referenced this pull request Oct 23, 2022
@bembelimen bembelimen mentioned this pull request Oct 23, 2022
4 tasks
@bembelimen
Copy link
Contributor

Please test #39048

@richard67
Copy link
Member

@sandewt Please test #39048 . Thanks in advance.

@sandewt
Copy link
Contributor Author

sandewt commented Oct 26, 2022

@richard67

I'd like to do that, but then I'm actually testing my own code proposal. I wonder if that's desirable 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language Change This is for Translators
Projects
None yet
Development

Successfully merging this pull request may close these issues.