From e259aa7939e5d3cd704351d4d53d1d1497217a11 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 15 Nov 2009 15:17:25 +0100 Subject: Added isCaseSensitive() to auth backends FS#1657 Ignore-this: 3591e5a36126c72bd9b931e4aa832da8 darcs-hash:20091115141725-7ad00-7c2fc662d1999731660673d05299c4f357b797b3.gz --- inc/auth/basic.class.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'inc/auth/basic.class.php') diff --git a/inc/auth/basic.class.php b/inc/auth/basic.class.php index a1f77dea5..c08422488 100644 --- a/inc/auth/basic.class.php +++ b/inc/auth/basic.class.php @@ -322,6 +322,16 @@ class auth_basic { return array(); } + /** + * Return case sensitivity of the backend [OPTIONAL] + * + * When your backend is caseinsensitive (eg. you can login with USER and + * user) then you need to overwrite this method and return false + */ + function isCaseSensitive(){ + return true; + } + /** * Sanitize a given username [OPTIONAL] * @@ -329,9 +339,7 @@ class auth_basic { * the backend and should also be applied to any user name within * the backend before returning it somewhere. * - * This should be used to enforce username restrictions. Eg. when - * the backend is case insensitive all usernames should be lowercased - * here. + * This should be used to enforce username restrictions. * * @author Andreas Gohr * @param string $user - username @@ -348,9 +356,7 @@ class auth_basic { * the backend and should also be applied to any groupname within * the backend before returning it somewhere. * - * This should be used to enforce groupname restrictions. Eg. when - * the backend is case insensitive all groupames should be lowercased - * here. + * This should be used to enforce groupname restrictions. * * Groupnames are to be passed without a leading '@' here. * -- cgit v1.2.3