thexerteproject / xerteonlinetoolkits

Xerte Online Toolkits
www.xerte.org.uk
Apache License 2.0
62 stars 61 forks source link

Stop changing authentication method in database to guest when not set #1269

Open FayCross opened 5 months ago

FayCross commented 5 months ago

Lines 242-246 in config.php change sitedetails>authentication_method to guest when it appears that the field is empty. This has caused issues twice at UoN where there have been issues with database connectivity and the field has been changed to guest from Ldap. Ideally, this code would use 'guest' when required but not save that to the database, so that the correct authentication method is used when database issues are resolved.