Skip to content
Snippets Groups Projects
Commit a0806688 authored by Guy Halse's avatar Guy Halse
Browse files

Fix a cosmetic exception when using loginuserpassorg.php

When using ldap:LDAPMulti, SimpleSAMLphp generates an exception:

 SimpleSAML_Error_Exception: Error 8 - Undefined index: rememberMeEnabled
 Backtrace:
 4 /srv/simplesamlphp-1.14.8/www/_include.php:83 (SimpleSAML_error_handler)
 3 /srv/simplesamlphp-1.14.8/modules/core/templates/loginuserpass.php:107 (require)
 2 /srv/simplesamlphp-1.14.8/lib/SimpleSAML/XHTML/Template.php:577 (SimpleSAML_XHTML_Template::show)
 1 /srv/simplesamlphp-1.14.8/modules/core/www/loginuserpassorg.php:95 (require)
 0 /srv/simplesamlphp-1.14.8/www/module.php:137 (N/A)

This is because the loginuserpass.php template (which is used by both
loginuserpass.php and loginuserpassorg.php) refers to
$this->data['rememberMeEnabled'], but that variable is only defined when
you make use of loginuserpass.php.

Since these don't appear to be relevant to loginuserpassorg.php, this
patch simply sets these to false (the default value), so that they're
no longer undefined.
parent 49b59245
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment