------art_17485_24540645.1219852592465
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I have a plugin called has_password that abstracts away the SHA1-encryption.

ruby script/plugin install git://github.com/jcoglan/has_password.git

There's information in the README on how to use it, it's pretty
straightforward and just handles the password encryption, and has a hook to
notify you when an object's password changes so you can send emails etc.
There are other more complex plugins like acts_as_authenticated that do a
lot more than this, so see which suits you best.


2008/8/27 Amanda .. <a.etherton / hotmail.com>

> Hi there, I'm trying to use a form to create a user for a site. All the
> information from the form is currently submitted to the database as is.
> I want the password to be encrypted in the database, but I have no idea
> how to do this. I have read a bit about WD5, but have no clue how to do
> it really, could anybody help me out with this?
>
> Here is my form:
>
> <% form_for :user do |f| %>
>
> <fieldset classwo-cols"  id
reateuser">
> <label forame">Name</label> <% .text_field :name, {:class > 'text'} %><br /><br /> > <label forsername">Username</label><%­˘ext_field :username, {:class > 'text' } %> <br /><br /> > <label forassword">Password</label><%­˘ext_field :password, {:class > 'text' } %> <br /><br /> > </fieldset> > > <%bmit_tag 'Save', {:class 'submit' } %> > > <% end %> > > Any explanations would be awesome, thanks in advance! > -- > Posted via http://www.ruby-forum.com/. > > -- James Coglan Lead JavaScript Developer theOTHERmedia http://ojay.othermedia.org +44 (0) 7771512510 ------art_17485_24540645.1219852592465--