fixed a bug where "welcome" emails were not being sent to users.
This commit is contained in:
parent
9c7bdf2863
commit
9038c3af72
2 changed files with 2 additions and 2 deletions
|
|
@ -72,8 +72,8 @@ sub registrationForm {
|
|||
sub registrationFormSave {
|
||||
my $authInfo = "\n\n".WebGUI::International::get(50).": ".$session{form}{"authWebGUI.username"}."\n"
|
||||
.WebGUI::International::get(51).": ".$session{form}{'authWebGUI.identifier'}."\n\n";
|
||||
WebGUI::MessageLog::addEntry($_[0],"",WebGUI::International::get(870),$session{setting}{welcomeMessage}.$authInfo);
|
||||
adminFormSave($_[0]);
|
||||
WebGUI::MessageLog::addEntry($_[0],"",WebGUI::International::get(870),$session{setting}{welcomeMessage}.$authInfo);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -180,11 +180,11 @@ sub www_createAccountSave {
|
|||
$u = WebGUI::User->new("new");
|
||||
$u->username($username);
|
||||
$u->authMethod($session{setting}{authMethod});
|
||||
WebGUI::Authentication::registrationFormSave($u->userId);
|
||||
$u->karma($session{setting}{karmaPerLogin},"Login","Just for logging in.") if ($session{setting}{useKarma});
|
||||
foreach $fieldName (keys %{$profile}) {
|
||||
$u->profileField($fieldName,${$profile}{$fieldName});
|
||||
}
|
||||
WebGUI::Authentication::registrationFormSave($u->userId);
|
||||
WebGUI::Session::start($u->userId);
|
||||
_logLogin($u->userId,"success");
|
||||
system(WebGUI::Macro::process($session{setting}{runOnRegistration})) if ($session{setting}{runOnRegistration} ne "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue