Skip to content

Commit

Permalink
Remove redundant method for pwd managed elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed Apr 16, 2017
1 parent 7ac97ab commit cfeab36
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion account_page.php
Expand Up @@ -162,7 +162,7 @@
<?php echo lang_get( 'password' ) ?>
</td>
<td>
<?php echo auth_password_change_not_allowed_message() ?>
<?php echo auth_password_managed_elsewhere_message() ?>
</td>
</tr><?php
} else {
Expand Down
9 changes: 0 additions & 9 deletions core/authentication_api.php
Expand Up @@ -137,15 +137,6 @@ function auth_password_managed_elsewhere_message() {
return $t_auth_flags->getPasswordManagedExternallyMessage();
}

/**
* The message to show to indicate to user that they can't reset or set the password.
* @return string The message.
*/
function auth_password_change_not_allowed_message() {
$t_auth_flags = auth_flags();
return $t_auth_flags->getPasswordManagedExternallyMessage();
}

/**
* Check if permanent login is enabled.
* @param int|bool $p_user_id The user id, or NO_USER/false for unknown user.
Expand Down
2 changes: 1 addition & 1 deletion verify.php
Expand Up @@ -112,7 +112,7 @@
echo '</div>';
} else {
echo '<div id="reset-passwd-msg" class="alert alert-sm alert-warning">';
echo auth_password_change_not_allowed_message();
echo auth_password_managed_elsewhere_message();
echo '</div>';
}
?>
Expand Down

0 comments on commit cfeab36

Please sign in to comment.