Skip to content

Commit 320a808

Browse files
larcherBalazs Dianiska
authored andcommitted
Issue #2683699 by larcher: Password fields still visible with "Allow SAML users to set Drupal passwords" unchecked
1 parent 2949ed2 commit 320a808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simplesamlphp_auth.module

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function simplesamlphp_auth_form_alter(&$form, $form_state, $form_id) {
304304
// them to know their Drupal password. This will allow them to change their
305305
// e-mail address, and set a Drupal password if they want to (and are
306306
// allowed).
307-
if ($is_user_profile_account_form && (isset($form['#user']->init) && $form['#user']->init) && _simplesaml_auth_user_has_authmap($form['#user']->init)) {
307+
if ($is_user_profile_account_form && (isset($form['#user']->init) && $form['#user']->init) && _simplesaml_auth_user_has_authmap($form['#user']->name)) {
308308

309309
unset($form['account']['current_pass']);
310310
unset($form['account']['current_pass_required_values']);

0 commit comments

Comments
 (0)