diff --git a/lib/cyberman.pm b/lib/cyberman.pm index 6984f21..04a3ead 100644 --- a/lib/cyberman.pm +++ b/lib/cyberman.pm @@ -105,7 +105,6 @@ post '/register' => sub { if (scalar(keys(%errs)) != 0) { return template 'register' => { error => 1, - params, %errs, }; } @@ -132,7 +131,6 @@ post '/register' => sub { template 'login' => { account_created => 1, - params, }; }; @@ -167,7 +165,6 @@ post '/login' => sub { return template 'login' => { error => 1, %errs, - params, }; } diff --git a/lib/cyberman/Domains.pm b/lib/cyberman/Domains.pm index 92f709b..8610f56 100644 --- a/lib/cyberman/Domains.pm +++ b/lib/cyberman/Domains.pm @@ -52,7 +52,6 @@ post '/domains/new' => sub { if (scalar(keys(%errs)) != 0) { return template 'domains/new' => { - params, %errs, error => 1, }; diff --git a/views/domains/new.tt b/views/domains/new.tt index c74827b..ab82b6b 100644 --- a/views/domains/new.tt +++ b/views/domains/new.tt @@ -11,10 +11,10 @@ You did not specify a domain to register. <% END %> <% IF e_exists %> - The domain '<% name | html_entity %>.cyb' has already been registered. Please choose a different domain name. + The domain '<% params.name | html_entity %>.cyb' has already been registered. Please choose a different domain name. <% END %> <% IF e_chars %> - The domain '<% name | html_entity %>.cyb' contains invalid characters. Domains must match the regular expression `^[a-z0-9]([a-z0-9\-_]*[a-z0-9])?$`. + The domain '<% params.name | html_entity %>.cyb' contains invalid characters. Domains must match the regular expression `^[a-z0-9]([a-z0-9\-_]*[a-z0-9])?$`. <% END %>

diff --git a/views/login.tt b/views/login.tt index 70154d6..9be713f 100644 --- a/views/login.tt +++ b/views/login.tt @@ -5,7 +5,7 @@ <% IF account_created %>
- Your account has been created and a confirmation email sent to <% email | html_entity %>. Please confirm your email address, then log in here. + Your account has been created and a confirmation email sent to <% params.email | html_entity %>. Please confirm your email address, then log in here.


<% END %> @@ -13,13 +13,13 @@ <% IF error %>
<% IF e_no_user %> - The email address <% email | html_entity %> is not registered. + The email address <% params.email | html_entity %> is not registered. <% END %> <% IF e_pass %> Your password was incorrect, sorry. <% END %> <% IF e_not_confirmed %> - Please confirm your email address using the link sent to <% email | html_entity %>. + Please confirm your email address using the link sent to <% params.email | html_entity %>. <% END %>


diff --git a/views/register.tt b/views/register.tt index f12cad7..8909d3d 100644 --- a/views/register.tt +++ b/views/register.tt @@ -39,7 +39,7 @@ - + @@ -47,7 +47,7 @@ - + @@ -55,7 +55,7 @@ - +