From 8218b257ce858e46d9884bcf523db25b5c9374af Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 6 Mar 2004 00:36:17 +0000 Subject: [PATCH] another auth fix --- lib/WebGUI/Auth/WebGUI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Auth/WebGUI.pm b/lib/WebGUI/Auth/WebGUI.pm index e2f73084a..96c74b2ae 100644 --- a/lib/WebGUI/Auth/WebGUI.pm +++ b/lib/WebGUI/Auth/WebGUI.pm @@ -395,7 +395,7 @@ sub recoverPassword { $vars->{'login.url'} = WebGUI::URL::page('op=auth&method=init'); $vars->{'login.label'} = WebGUI::International::get(58); - $vars->{'anonymousRegistration.isAllowed'} = if ($session{setting}{anonymousRegistration}); + $vars->{'anonymousRegistration.isAllowed'} = ($session{setting}{anonymousRegistration}); $vars->{'createAccount.url'} = WebGUI::URL::page('op=createAccount'); $vars->{'createAccount.label'} = WebGUI::International::get(67); $vars->{'recover.message'} = $_[0] if ($_[0]);