Adding karma.

This commit is contained in:
JT Smith 2002-06-23 22:47:15 +00:00
parent 06b64fc226
commit a0a2192119

View file

@ -247,6 +247,7 @@ sub www_createAccountSave {
$u->authMethod($session{setting}{authMethod}); $u->authMethod($session{setting}{authMethod});
$u->ldapURL($session{setting}{ldapURL}); $u->ldapURL($session{setting}{ldapURL});
$u->connectDN($connectDN); $u->connectDN($connectDN);
$u->karma($session{setting}{karmaPerLogin},"Login","Just for logging in.") if ($session{setting}{useKarma});
foreach $fieldName (keys %{$profile}) { foreach $fieldName (keys %{$profile}) {
$u->profileField($fieldName,${$profile}{$fieldName}); $u->profileField($fieldName,${$profile}{$fieldName});
} }
@ -458,6 +459,7 @@ sub www_login {
} }
if ($success) { if ($success) {
WebGUI::Session::start($uid); WebGUI::Session::start($uid);
$u->karma($session{setting}{karmaPerLogin},"Login","Just for logging in.") if ($session{setting}{useKarma});
_logLogin($uid,"success"); _logLogin($uid,"success");
return ""; return "";
} else { } else {