Password sent to Server

10 views
Skip to first unread message

Avi

unread,
Oct 17, 2012, 2:17:32 AM10/17/12
to rubyonra...@googlegroups.com
Hello All,

Is there any generic way in rails 3, to prevent password to go into the server?
In my rails application, while creating a new user, I don't want password to be sent to the server.
How can I do that ?


Thanks.

Jim Ruther Nill

unread,
Oct 17, 2012, 3:19:20 AM10/17/12
to rubyonra...@googlegroups.com
if you mean stop rails from logging the password, you should look config.filter_parameters option.
it's in application.rb.  just add the parameter names you want to filter out.
 


Thanks.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/y79A_iT3cM0J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.com

Avi

unread,
Oct 17, 2012, 3:31:01 AM10/17/12
to rubyonra...@googlegroups.com
Filter parameters seems not to be working.

Jim Ruther Nill

unread,
Oct 17, 2012, 3:37:32 AM10/17/12
to rubyonra...@googlegroups.com
On Wed, Oct 17, 2012 at 3:31 PM, Avi <aavinas...@gmail.com> wrote:
Filter parameters seems not to be working.

As Colin usually say, please don't top post.

What made you think it isn't working?  can you paste some code and part of the log as proof that it is not working?
If you added additional parameter to the config file, you need to restart your server for the changes to take effect.
 
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/fcjpV_gok84J.

For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages