Added access to the message tag on two user targets.
authorAdrian Oldham <adriann@visualthought.com.au>
Mon, 23 Apr 2007 06:11:27 +0000 (06:11 +0000)
committeradriann <adriann@45cb6cf1-00bc-42d2-bb5a-07f51df49f94>
Mon, 23 Apr 2007 06:11:27 +0000 (06:11 +0000)
site/cgi-bin/modules/BSE/UserReg.pm

index 526a9e4..854c6d1 100644 (file)
@@ -1225,9 +1225,11 @@ sub lost_password {
                                        $msgs->(lostmailerror=>
                                                "Email error:".$mail->errstr,
                                                $mail->errstr));
+  $message = $message ? escape_html($message) : $req->message;
   my %acts;
   %acts = 
     (
+     message => $message,
      $req->dyn_user_tags(),
      user => sub { CGI::escapeHTML($user->{$_[0]}) },
     );