From 5caf46f6805bac8565fe7d2d02d8580715a8be7d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 11 Jun 2024 19:35:21 +0200 Subject: [PATCH] refactoring --- lam/lib/selfService.inc | 4 ++-- sonar-project.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lam/lib/selfService.inc b/lam/lib/selfService.inc index d2feb15ad..141df2f7b 100644 --- a/lam/lib/selfService.inc +++ b/lam/lib/selfService.inc @@ -1087,8 +1087,8 @@ class SelfServiceUserPasswordLoginHandler implements SelfServiceLoginHandler { $content->add($userField); // password field $passwordText = _("Password"); - if (!empty($profile->passwordLabel)) { - $passwordText = $profile->passwordLabel; + if (!empty($this->profile->passwordLabel)) { + $passwordText = $this->profile->passwordLabel; } $passwordVal = !empty($_POST['password']) ? $_POST['password'] : ''; $passwordField = new htmlResponsiveInputField($passwordText, 'password', $passwordVal); diff --git a/sonar-project.properties b/sonar-project.properties index 1c666bfb3..be52909cf 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -19,4 +19,4 @@ sonar.tests=lam/tests sonar.php.tests.reportPath=code-coverage/junit.xml sonar.php.coverage.reportPaths=code-coverage/clover.xml -sonar.exclusions=**/3rdParty/**,**/lib/extra/**,**/lib/*jquery*.js,**/lib/*Sortable*.js,**/lib/*flatpickr*.js,**/lib/*sweetalert*.js,**/tests/**,**/style/*jquery*.css,**/style/*cropper*.css,**/style/*magnific*.css,**/style/responsive/*normalize*.css,**/style/*flatpickr*.css,**/style/*sweetalert*.css,**/schema.inc +sonar.exclusions=**/3rdParty/**,**/lib/extra/**,**/lib/*jquery*.js,**/lib/*Sortable*.js,**/lib/*flatpickr*.js,**/lib/*sweetalert*.js,**/tests/**,**/style/*jquery*.css,**/style/*cropper*.css,**/style/*magnific*.css,**/style/responsive/*normalize*.css,**/style/*flatpickr*.css,**/style/*sweetalert*.css,**/style/tabulator/tabulator.css,**/schema.inc