You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2010/01/22 18:20:28 UTC
svn commit: r902182 - /incubator/vcl/trunk/web/.ht-inc/authentication.php
Author: jfthomps
Date: Fri Jan 22 17:20:28 2010
New Revision: 902182
URL: http://svn.apache.org/viewvc?rev=902182&view=rev
Log:
VCL-294
modified localLogin
-corrected calls to addLoginLog to specify auth mech as 'Local'
-added $authMechs as a global
Modified:
incubator/vcl/trunk/web/.ht-inc/authentication.php
Modified: incubator/vcl/trunk/web/.ht-inc/authentication.php
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/authentication.php?rev=902182&r1=902181&r2=902182&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/authentication.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/authentication.php Fri Jan 22 17:20:28 2010
@@ -484,9 +484,9 @@
///
////////////////////////////////////////////////////////////////////////////////
function localLogin($userid, $passwd) {
- global $HTMLheader, $phpVer;
+ global $HTMLheader, $phpVer, $authMechs;
if(validateLocalAccount($userid, $passwd)) {
- addLoginLog($userid, $authtype, $authMechs[$authtype]['affiliationid'], 1);
+ addLoginLog($userid, 'Local', $authMechs['Local Account']['affiliationid'], 1);
//set cookie
$cookie = getAuthCookieData("$userid@local");
if(version_compare(PHP_VERSION, "5.2", ">=") == true)
@@ -500,7 +500,7 @@
exit;
}
else {
- addLoginLog($userid, $authtype, $authMechs[$authtype]['affiliationid'], 0);
+ addLoginLog($userid, 'Local', $authMechs['Local Account']['affiliationid'], 0);
printLoginPageWithSkin('Local Account');
printHTMLFooter();
dbDisconnect();