[Jifty-commit] r2232 - in jifty/trunk: . plugins/Login/lib/Jifty/Plugin/Login/Model

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Nov 30 19:45:44 EST 2006


Author: jpeacock
Date: Thu Nov 30 19:45:43 2006
New Revision: 2232

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/Signup.pm
   jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Model/User.pm

Log:
Don't delete arguments that you don't know about /a priori/.  Don't display
fields that shouldn't be displayed (using the Unrendered attribute).

Modified: jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/Signup.pm
==============================================================================
--- jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/Signup.pm	(original)
+++ jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/Signup.pm	Thu Nov 30 19:45:43 2006
@@ -39,7 +39,6 @@
         password_confirm => 1,
     );
 
-    for ( keys %$args ) { delete $args->{$_} unless ( $fields{$_} ); }
     $args->{'email'}{'ajax_validates'}   = 1;
     $args->{'password_confirm'}{'label'} = _("Type that again?");
     $args->{'name'}{'label'} = _("Name");

Modified: jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Model/User.pm
==============================================================================
--- jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Model/User.pm	(original)
+++ jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Model/User.pm	Thu Nov 30 19:45:43 2006
@@ -21,11 +21,12 @@
 
 column
   email_confirmed => label is 'Email address confirmed?',
-  type is 'boolean';
+  type is 'boolean',
+  render_as 'Unrendered';
 
 column
   auth_token => type is 'text',
-  render_as 'Password';
+  render_as 'Unrendered';
 
 package Jifty::Plugin::Login::Model::User;
 use base qw/Jifty::Record/;


More information about the Jifty-commit mailing list