?
avatar kofaysi
kofaysi
4 Feb 2019

Steps to reproduce the issue

  • Register a new arbitrary user.
  • Log out of all the Joomla frontend.
  • Wait for the activation e-mail and activate the account by clicking on the link.

Expected result

A non-green (an unaccomplished event) message or notice should appear. It can be blue Notice or yellow Warning as in https://docs.joomla.org/Display_error_messages_and_notices

Actual result

A green (successful event) message appears. The text is great and valid, but it is misleading about successful event.

System information (as much as possible)

Joomla 3.9.2

Additional comments

This behavior changed in the last months. Previously it was possible to activate accounts unless the respective administrator was logged out. Now, it is required that the administrator (or similar user) logs in. That is a valid requirement and a good change in the code, IMO. But visually nothing changed, only the message and the process changed. The message is still green as in "successful valid action completed". That is misleading. Action is required to finish the validation process.

All it is a corrected optical aid. Of course, it is no excuse that the message was interpreted falsely by the user... Or is it? ]:->

avatar kofaysi kofaysi - open - 4 Feb 2019
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Feb 2019
avatar kofaysi
kofaysi - comment - 4 Feb 2019

The screenshot of the current message is included.


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

avatar kofaysi
kofaysi - comment - 4 Feb 2019

The screenshot of the current message is included.
screen shot 2019-02-04 at 09 12 52


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

avatar kofaysi
kofaysi - comment - 4 Feb 2019

The screenshot of the current message is included.
screen shot 2019-02-04 at 09 12 52


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

avatar brianteeman
brianteeman - comment - 4 Feb 2019

That string is not coming from Joomla.

avatar kofaysi
kofaysi - comment - 4 Feb 2019

I have search in language override and this came up:
screen shot 2019-02-04 at 15 39 51
That is why I identified Joomla and com_users. The capitalization is a result of the gTranslate plugin. (gTranslate has been switched on, while already on English default site language.)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23763.
avatar infograf768
infograf768 - comment - 5 Feb 2019

See https://github.com/joomla/joomla-cms/blob/staging/language/en-GB/en-GB.com_users.ini#L120

Indeed, there no message type set in
ROOT/components/com_users/controllers/registration.php
line 92
$this->setMessage($message);

By default, it therefore uses the Message type.

It should be a warning
$this->setMessage($message, 'warning');

@kofaysi Can you propose a PR?

avatar kofaysi
kofaysi - comment - 5 Feb 2019

My first PR has been created kofaysi#1

I used this manual https://extensions.joomla.org/blog/item/how-to-contribute-to-joomla-through-github/ (screenshots are outdated).

Did I miss anything crucial, please?

avatar kofaysi
kofaysi - comment - 5 Feb 2019

I think that that PR is going to affect the line 84, too
$message = JText::_('COM_USERS_REGISTRATION_ACL_ADMIN_ACTIVATION_PERMISSIONS');
and it is a correct behavior also.

avatar infograf768
infograf768 - comment - 5 Feb 2019

yes. both messages are concerned.
now you have to propose your PR from your branch to staging

avatar kofaysi
kofaysi - comment - 8 Feb 2019

Hm, I think I did sth wrong, I missed something or should I await an action by somebody else, please? I merged the branch to staging few days ago
image
But there is no code attached to this issue yet and the PR did not appear in Joomla! Patch Tester yet either.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Mar 2019

@kofaysi can this Issue be closed?

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Mar 2019
Status New Information Required
avatar kofaysi
kofaysi - comment - 4 Mar 2019

I made a stupid mistake and merged the PR into staging only now. I guess, a code will be attached soon. So, the issue should stay open until the PR is accepted or dismissed, right?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Mar 2019

if there is a PR the issue can be closed.

avatar kofaysi kofaysi - change - 4 Mar 2019
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2019-03-04 13:45:41
Closed_By kofaysi
avatar kofaysi kofaysi - close - 4 Mar 2019

Add a Comment

Login with GitHub to post a comment