Discussion:
[jifty-devel] Question about Jifty::Plugin::Authentication::Password
Jes
2009-10-11 18:14:47 UTC
Permalink
Hi all:

I'm a new Jifty user (only 4 days reviewing docs and starting to code).
I need to implement a very trivial login system, so
Jifty::Plugin::Authentication::Password seemed very appropiate but it
needs an email confirmation to activate users. The machine in which the
application is installed, cannot send mail out (no gateways to the mail
server or through internet).

I only want users to be able to sign up, and no other verification
procedures take place. Is it possible with this plugin or have I to
code a new one? Is it possible to switch of the email confirmation
(maybe 'email_confirmed' always on?).

Thanks in advance. Greetings,

Jes
Ruslan Zakirov
2009-10-11 20:49:51 UTC
Permalink
Hello Jes,

I believe that there is no need in new plugin for that and this one
can be easily extended to avoid confirmations.
Post by Jes
I'm a new Jifty user (only 4 days reviewing docs and starting to code).
I need to implement a very trivial login system, so
Jifty::Plugin::Authentication::Password seemed very appropiate but it
needs an email confirmation to activate users. The machine in which the
application is installed, cannot send mail out (no gateways to the mail
server or through internet).
I only want users to be able to sign up, and no other verification
procedures take place. Is it possible with this plugin or have I to
code a new one? Is it possible to switch of the email confirmation
(maybe 'email_confirmed' always on?).
Thanks in advance. Greetings,
Jes
_______________________________________________
jifty-devel mailing list
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
--
Best regards, Ruslan.
Jes
2009-10-11 21:22:26 UTC
Permalink
Thanks Ruslan, but... how?

El Mon, 12 Oct 2009 00:49:51 +0400
Post by Ruslan Zakirov
Hello Jes,
I believe that there is no need in new plugin for that and this one
can be easily extended to avoid confirmations.
Post by Jes
I'm a new Jifty user (only 4 days reviewing docs and starting to
code). I need to implement a very trivial login system, so
Jifty::Plugin::Authentication::Password seemed very appropiate but
it needs an email confirmation to activate users. The machine in
which the application is installed, cannot send mail out (no
gateways to the mail server or through internet).
I only want users to be able to sign up, and no other verification
procedures take place. Is it possible with this plugin or have I to
code a new one? Is it possible to switch of the email confirmation
(maybe 'email_confirmed' always on?).
Thanks in advance. Greetings,
Jes
_______________________________________________
jifty-devel mailing list
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
Jesse Vincent
2009-10-12 19:06:16 UTC
Permalink
Post by Jes
Thanks Ruslan, but... how?
El Mon, 12 Oct 2009 00:49:51 +0400
Post by Ruslan Zakirov
Hello Jes,
I believe that there is no need in new plugin for that and this one
can be easily extended to avoid confirmations.
Post by Jes
I'm a new Jifty user (only 4 days reviewing docs and starting to
code). I need to implement a very trivial login system, so
Jifty::Plugin::Authentication::Password seemed very appropiate but
it needs an email confirmation to activate users. The machine in
which the application is installed, cannot send mail out (no
gateways to the mail server or through internet).
I only want users to be able to sign up, and no other verification
procedures take place. Is it possible with this plugin or have I to
code a new one? Is it possible to switch of the email confirmation
(maybe 'email_confirmed' always on?).
I suspect that what you need to do is, yes, subclass
Jifty::Plugin::Authentication::Password::Action::Signup to not tell the
user you're sending them mail and to set email_confirmed to true in
'create' in your User model.

Best,
Jesse
Jes
2009-10-12 19:22:12 UTC
Permalink
Yes, I think you're right Jesse. I was thinking about that after
reading Ruslan's answer...

Thank you very much Jesse. And thanks Ruslan. I'll try it.

Best regards,

Jes


El Mon, 12 Oct 2009 15:06:16 -0400
Post by Jesse Vincent
Post by Jes
Thanks Ruslan, but... how?
El Mon, 12 Oct 2009 00:49:51 +0400
Post by Ruslan Zakirov
Hello Jes,
I believe that there is no need in new plugin for that and this
one can be easily extended to avoid confirmations.
Post by Jes
I'm a new Jifty user (only 4 days reviewing docs and starting to
code). I need to implement a very trivial login system, so
Jifty::Plugin::Authentication::Password seemed very appropiate
but it needs an email confirmation to activate users. The
machine in which the application is installed, cannot send mail
out (no gateways to the mail server or through internet).
I only want users to be able to sign up, and no other
verification procedures take place. Is it possible with this
plugin or have I to code a new one? Is it possible to switch of
the email confirmation (maybe 'email_confirmed' always on?).
I suspect that what you need to do is, yes, subclass
Jifty::Plugin::Authentication::Password::Action::Signup to not tell
the user you're sending them mail and to set email_confirmed to true
in 'create' in your User model.
Best,
Jesse
_______________________________________________
jifty-devel mailing list
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
Loading...