On Miércoles, 27 de Abril de 2011 00:56:08 Lee escribió:
> I'm using ActiveScaffold with AuthLogic, and have fields "password"
> and "password_confirmation" defined in my controller (but not the
> underlying table). AuthLogic automatically takes these fields and
> populates the underlying crypted_password and password_salt fields.
> All that is working fine. However, when creating a new record,
> ActiveScaffold shows the "password" and "password_confirmation" fields
> in clear text, in the create form

Set form_ui to :password to fix forms

> and then in the list after the save.
> If I refresh the list it correctly shows them as dashes, but if
> anyone's looking on or scraping my screen then the damage is done.
> 
> Any ideas on how to force those two fields to display as dashes or
> astericks, preferably from the controller so that it will apply to all
> views?

I think you should remove from list view, if they will be always dashes.
Also, you can add a field override, like model_password_column and 
model_password_confirmation_column, to return dash or asterisk. It will be used 
in list and show views.

> 
> Thanks for any help.
> 
> Lee

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to