login : feedback when user does not exists in chamilo db

skala
Noël Dieschburg 15 years ago
parent 5846834bc4
commit cca94d64fd
  1. 3
      main/inc/local.inc.php

@ -437,6 +437,9 @@ if (!empty($_SESSION['_user']['user_id']) && ! ($login || $logout)) {
} }
} }
} //end if is_array($extAuthSource) } //end if is_array($extAuthSource)
if ($loginFailed) { //If we are here username given is wrong
header('Location: '.api_get_path(WEB_PATH).'index.php?loginFailed=1&error=user_password_incorrect');
}
} //end else login failed } //end else login failed
} elseif (api_get_setting('sso_authentication')==='true' && !in_array('webservices', explode('/', $_SERVER['REQUEST_URI']))) { } elseif (api_get_setting('sso_authentication')==='true' && !in_array('webservices', explode('/', $_SERVER['REQUEST_URI']))) {
/** /**

Loading…
Cancel
Save