On Aug 23, 2011, at 7:43 AM, billv wrote:

> As an example.  If I create two users with the username "user" and the
> password "password", the saved password_digest for each will be
> different.  Because I don't store the password itself, I can't check
> to be sure the passwords are unique.

Why do you care? Why would you allow two users with the same name? And what 
would you do when someone tries to create the second account with the username 
"user" and the same password? Give them an error message that explains "sorry 
you can't do that because there's already a user registered with that name & 
password"??? Oops ;-)

-- 
Scott Ribe
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice




-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to