Show correct label for confirm password

Created on 27 June 2023, over 1 year ago
Updated 8 August 2023, about 1 year ago

Problem/Motivation

There is custom field description in code when editing own/other users TFA settings, but the same 'Enter your current password to continue." text is displayd becauise of wrong comparison code.

 // Allow administrators to change TFA settings for another account.
if ($account->id() == $user->id() && $account->hasPermission('administer tfa for other users')) {

vs

 // Allow administrators to change TFA settings for another account.
if ($account->id() != $user->id() && $account->hasPermission('administer tfa for other users')) {

Steps to reproduce

Setup/reset another users TFA settings.

Proposed resolution

Fix code typo.

User interface changes

Field description on admin UI: Enter your current password to continue. --> Enter your current password to alter TFA settings for account %name.

Using 8.x-1.x-dev because of this is the 'Recommended by the project’s maintainer.'

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary szato

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024