Re: Salted Hash Login Generator

Joseph Hosteny
2005-06-07T02:49:50Z

On Jun 6, 2005, at 10:40 PM, Siva Jagadeesan wrote:

> Thanx Joesph:
>
> Thats wat I was suspecting.
> How easy will it be to get started with Original Login Generator ,
> and then move to slated login generator? coz I like "Forgot ur
> password" feature in Salted Login Generator.
>

Probably not too hard. You can derive your own User class from the
login generator''s user class, so that if you rerun the generator or
replace it with the salted login generator, there won''t be too much
work.

> Is there any pattern u guys use to seperate these Account details
> from user details?
>

One thing I have been thinking of doing when I get some time is
refactoring the code to use the Observer class for the email
notifications. Originally, the reason transactions and inline mailing
in the controller were included was that the generator didn''t have
auth tokens, and generated new passwords that had to be mailed out
(even on signup, if I remember properly). The idea was that if the
email did not work, you wouldn''t want the entry in the DB for the
user, when the user would not even have a password record in email.
Since that is not really a concern anymore, I might change that and
do a little cleanup, initiating emails via an observer on the
password field.

>
> On 6/6/05, Joseph Hosteny <jhosteny-ee4meeAH724@public.gmane.org>
wrote:
>
> On Jun 6, 2005, at 10:28 PM, Siva Jagadeesan wrote:
>
>> I was trying to setup "Salted Hash Login Generator".
>> I am not able to successfully configure my mail settings..so I
>> commented out that "sending mail" part and signed up a user.
But
>> now when I try to login, I am not able to login ...:(
>> Is there something I am missing?
>>
>
> The salted login generator requires account verification via an
> email message that is mailed to the new user with an authorization
> token.
>
> If you can''t get your mailer working, and need something to work
> ASAP, you can always use the original login generator. It has no
> dependencies on ActionMailer.
>
> -joe
>
>> --Siva Jagadeesan
>> http://rubydude.blogspot.com/
>> _______________________________________________
>> Rails mailing list
>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>
>
> Joseph Hosteny
> jhosteny-ee4meeAH724@public.gmane.org
> H: 412.362.8672
> C: 412.418.6023
>
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>

Joseph Hosteny
jhosteny-ee4meeAH724@public.gmane.org
H: 412.362.8672
C: 412.418.6023