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