I currently have a form for the user to change password, preferences, etc. The password field and the confirm password field are initially blank. Only if there is something entered in the both fields and they match is the password changed. However, this prevents the user from using an empty password. Admittedly, this isn''t a great idea in general, I am reluctant to require non-empty passwords. What do others do to allow a user to have an empty password and not require that they enter the password twice every time they edit their preferences. TIA, Jeffrey --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> I currently have a form for the user to change password, preferences, etc. > The password field and the confirm password field are initially blank. Only > if there is something entered in the both fields and they match is the > password changed. However, this prevents the user from using an empty > password. Admittedly, this isn''t a great idea in general, I am reluctant to > require non-empty passwords. What do others do to allow a user to have an > empty password and not require that they enter the password twice every time > they edit their preferences.Personally I can''t imagine allowing empty passwords for anything, but perhaps the simplest and most obvious thing for the user would be to have a checkbox that read "Set my password to nothing, an empty string, nil, zippo, zip, etc....." If that''s checked, empty their password. Otherwise do the normal thing. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 3, 2008, at 8:46 PM, Jeffrey L. Taylor wrote:> > I currently have a form for the user to change password, > preferences, etc. > The password field and the confirm password field are initially > blank. Only > if there is something entered in the both fields and they match is the > password changed. However, this prevents the user from using an empty > password. Admittedly, this isn''t a great idea in general, I am > reluctant to > require non-empty passwords. What do others do to allow a user to > have an > empty password and not require that they enter the password twice > every time > they edit their preferences.On my profile pages, I have a "Change Password" link that uses a different view. I suppose you could also use a hidden div on the same page and submit it as a separate form (maybe even ajaxy). That way the user can change other profile information without having to retype their existing password, which is what I think you were referring to. Peace, Phillip --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---