Adding karma.
This commit is contained in:
parent
06b64fc226
commit
a0a2192119
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue