Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "Do not display login dialog when using HTTP_AUTH"

This reverts commit 90633ab.
  • Loading branch information...
commit 5d5185dec4c4d3d6530b6cb298a55f3a22a13a7d 1 parent 4775bff
@grangeway grangeway authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 core/authentication_api.php
View
10 core/authentication_api.php
@@ -359,14 +359,8 @@ function auth_get_password_max_size() {
function auth_does_password_match( $p_user_id, $p_test_password ) {
$t_configured_login_method = config_get( 'login_method' );
- switch( $t_configured_login_method ) {
- case LDAP:
- return ldap_authenticate( $p_user_id, $p_test_password );
- break;
-
- case HTTP_AUTH:
- return true;
- break;
+ if( LDAP == $t_configured_login_method ) {
+ return ldap_authenticate( $p_user_id, $p_test_password );
}
$t_password = user_get_field( $p_user_id, 'password' );
Please sign in to comment.
Something went wrong with that request. Please try again.