? NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar particthistle
particthistle
22 Oct 2020

Correction of language and hint positioning for two factor authentication field on login page.

Pull Request does not have a related issue - I identified issue while checking through translations, then found an issue where it appears in the site.

Summary of Changes

  • Correct "Authentification" to "Authentication" in COM_LOGIN_TWOFACTOR string (Authentification is valid, but not proper en_GB)
  • On viewing where the string was being used, I then found the layout is incorrect, so have fixed that also.
  • scss update to create new class for .form-control-hint to fix the layout.

Testing Instructions

  • In Joomla 4, enable one of the two factor authentication plugins
  • Log out
  • On the log in screen you'll now see the Secret Key box, with the spelling issue and the incorrect formatting of the hint that uses COM_LOGIN_TWOFACTOR string.
  • Apply PR
  • Log out again and check that the Log in screen now has the corrected en_GB spelling as well as better formatting per the AFTER result below.

Actual result BEFORE applying this Pull Request

Before-autheitification

  • Spelling error still visible - COM_LOGIN_TWOFACTOR string will display as "For Two-Factor Authentification" for en_GB
  • Hint for Secret Key is supposed to be positioned on the right, but due to double span the text-right class fails to do so.

Expected result AFTER applying this Pull Request

image

  • COM_LOGIN_TWOFACTOR string will now show as "For Two-Factor Authentication"
  • Hint for Secret Key will now be displayed above the field, to the right of the field.

Documentation Changes Required

No. en_GB translation will be updated, but will most likely have been correctly translated into other languages previously. I just spotted the issue when translating en_US.

avatar particthistle particthistle - open - 22 Oct 2020
avatar particthistle particthistle - change - 22 Oct 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Oct 2020
Category Administration Language & Strings Modules Templates (admin) NPM Change
avatar brianteeman
brianteeman - comment - 22 Oct 2020

LGTM

avatar particthistle
particthistle - comment - 22 Oct 2020

I've checked I got the SCSS change correct this time by applying the PR package to my test site. Result was as expected in the AFTER result, so I look forward to seeing successful tests shortly.

avatar richard67
richard67 - comment - 22 Oct 2020

@particthistle SCSS code style check fails in Drone, error log see here: https://ci.joomla.org/joomla/joomla-cms/36866/1/22

avatar particthistle particthistle - change - 22 Oct 2020
Labels Added: ? NPM Resource Changed ?
avatar richard67
richard67 - comment - 22 Oct 2020

@particthistle Now drone says in the npm clone step:

CSS file copied/minified: /********/src/build/media_source/system/css/fields/calendar.css
--
Error: Invalid CSS after "}": expected "}", was ""
        on line 251 of administrator/templates/atum/scss/blocks/_login.scss
        from line 43 of administrator/templates/atum/scss/template.scss
>> }

The changes on GitHub for that file show up as:

2020-10-22_01

Can it be that there is missing a closing curly bracket before the .form-control-hint?

Beside that, check code style. In scss we use 2 spaces for each level of indentation and no tabs.

If that helps, adjust your editor so it shows tabs and spaces, then you can see what is used.

avatar joomla-cms-bot joomla-cms-bot - change - 22 Oct 2020
Category Administration Language & Strings Modules Templates (admin) NPM Change Repository Administration Language & Strings Modules Templates (admin) NPM Change
avatar ceford ceford - test_item - 23 Oct 2020 - Tested successfully
avatar ceford
ceford - comment - 23 Oct 2020

I have tested this item successfully on 80e1daf

Tip: use a different browser to see Login form - no need to logout.
Needs npm ci


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31202.
avatar particthistle particthistle - change - 30 Oct 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 30 Oct 2020
Category Administration Language & Strings Modules Templates (admin) NPM Change Repository Administration Language & Strings Modules Templates (admin) NPM Change
avatar particthistle particthistle - change - 30 Oct 2020
Labels Added: ?
Removed: ?
avatar particthistle particthistle - change - 31 Oct 2020
Labels Removed: ?
avatar richard67
richard67 - comment - 1 Nov 2020

@ceford Could you test again? Thanks in advance.

avatar ceford ceford - test_item - 1 Nov 2020 - Tested successfully
avatar ceford
ceford - comment - 1 Nov 2020

I have tested this item successfully on 66dc2dc

Seems OK but I did not see the Web Authentication bar with either plugin.


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

avatar ceford
ceford - comment - 1 Nov 2020
avatar richard67
richard67 - comment - 1 Nov 2020

@ceford The web authentication button is only shown when accessing the site with https. When accessing with http it is not shown How did you test? https or http?.

avatar ceford
ceford - comment - 2 Nov 2020

Using localhost - and access is via http.

avatar richard67
richard67 - comment - 2 Nov 2020

Using localhost - and access is via http.

@ceford If localhost or other host doesn't matter. But as I wrote it is desired behaviour that the web authentication button is only shown with https and not with http.

avatar brianteeman
brianteeman - comment - 2 Nov 2020

More than desired it is intentional as webauthn will only work on https

avatar ceford
ceford - comment - 2 Nov 2020

Thanks for the tips! I did not have https enabled on localhost. I have now done that and see the Web Authentication button. Next job for me: find out what it does!

avatar gostn gostn - test_item - 3 Nov 2020 - Tested successfully
avatar gostn
gostn - comment - 3 Nov 2020

I have tested this item successfully on 66dc2dc


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

avatar zero-24
zero-24 - comment - 3 Nov 2020

Next job for me: find out what it does!

Making your site more secure :-D You can check here as a starting point: https://en.m.wikipedia.org/wiki/WebAuthn

avatar richard67 richard67 - change - 8 Nov 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 8 Nov 2020

RTC


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

avatar chmst chmst - close - 8 Nov 2020
avatar chmst chmst - merge - 8 Nov 2020
avatar chmst chmst - change - 8 Nov 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-11-08 09:07:33
Closed_By chmst
Labels Added: ?
avatar chmst
chmst - comment - 8 Nov 2020

Thanks!

Add a Comment

Login with GitHub to post a comment