mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-48873 auth_cas: Wrong redirection with bad multiauth login
This commit is contained in:
parent
da0ef2e4cf
commit
699001c79b
@ -113,6 +113,12 @@ class auth_plugin_cas extends auth_plugin_ldap {
|
||||
|
||||
// If the multi-authentication setting is used, check for the param before connecting to CAS.
|
||||
if ($this->config->multiauth) {
|
||||
|
||||
// If there is an authentication error, stay on the default authentication page.
|
||||
if (!empty($SESSION->loginerrormsg)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$authCAS = optional_param('authCAS', '', PARAM_RAW);
|
||||
if ($authCAS == 'NOCAS') {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user