Re: [Catalyst] [Beginner] model with MySQL, is many_to_many required?

2010-08-26 Thread Octavian Rasnita

From: "Ekki Plicht (DF4OR)" 

Hi.

Just getting around to implement the first user auth stuff, and as usual I 
am

going along with MySQL. I know, I know, please no DB flame wars :-)

As most of the docs are based on SqLite and Cat/MySQL docs are a little 
bit

sketchy, I am unsure if my Schema requires the manual addition of the
many_to_many relationship, or if this is just a requirement for SqLite.



Yes you need to manually add the many_to_many relationship.
Something like:

__PACKAGE__->many_to_many(roles => 'user_roles', 'role');

Octavian


__ Information from ESET NOD32 Antivirus, version of virus signature 
database 5400 (20100826) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] [Beginner] Understanding actions and controllers - not!

2010-08-26 Thread Ekki Plicht (DF4OR)
Am Freitag 27 August 2010, 00:02:15 schrieb Kieren Diment:
> On 27/08/2010, at 7:50 AM, Ekki Plicht (DF4OR) wrote:
> > Am Montag 23 August 2010, 23:17:40 schrieb Ben van Staveren:
> >> try using /static/css/main.css ;)
> > 
> > Yup, that did the trick.
> > $c.uri_for() would have worked as well, as I have learned now (tnx
> > Stuart).
> 
> $c->uri_for('/static/wherever') is the correct solution.  Giving it an
> absolute path will most likely break if you end up deploying your
> application somewhere other than the server root.

k, tnx. Good book, BTW :-)

Cheers,
Ekki

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] [Beginner] Understanding actions and controllers - not!

2010-08-26 Thread Kieren Diment

On 27/08/2010, at 7:50 AM, Ekki Plicht (DF4OR) wrote:

> Am Montag 23 August 2010, 23:17:40 schrieb Ben van Staveren:
>> try using /static/css/main.css ;)
> 
> Yup, that did the trick.
> $c.uri_for() would have worked as well, as I have learned now (tnx Stuart).


$c->uri_for('/static/wherever') is the correct solution.  Giving it an absolute 
path will most likely break if you end up deploying your application somewhere 
other than the server root.
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] [Beginner] model with MySQL, is many_to_many required?

2010-08-26 Thread Ekki Plicht (DF4OR)
Hi.

Just getting around to implement the first user auth stuff, and as usual I am 
going along with MySQL. I know, I know, please no DB flame wars :-)

As most of the docs are based on SqLite and Cat/MySQL docs are a little bit 
sketchy, I am unsure if my Schema requires the manual addition of the 
many_to_many relationship, or if this is just a requirement for SqLite.

That shows probably that I still haven't grasped Models and Schemas fully, but 
so be it.

My Schema has the three usual auth tables: users, roles, user_roles. The 
latter one stores the relation with foreign keys, I am using InnoDB tables 
which support those.

User.pm has the 'has_many' sub, Role.pm has the 'has_many' sub, UsersRole.pm 
has two subs 'belongs_to', all automagically from the Schema::Loader. Anything 
else required?

TIA,
Ekki

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] [Beginner] Understanding actions and controllers - not!

2010-08-26 Thread Ekki Plicht (DF4OR)
Am Montag 23 August 2010, 23:17:40 schrieb Ben van Staveren:
> try using /static/css/main.css ;)

Yup, that did the trick.
$c.uri_for() would have worked as well, as I have learned now (tnx Stuart).

But why? :-)
I mean, coming from years of traditional web development it's deeply ingrained 
not to use absolute paths. I would never have expected to have Cat meddle with 
my views in such a way.

Anyway, it works now, and I am progressing quite nicely. Catalyst seems more 
and more impressive to me.

Cheers,
Ekki

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] CatalystX-Component-Traits forgot to bump version

2010-08-26 Thread Tomas Doran


On 26 Aug 2010, at 07:34, Bill Moseley wrote:

Still at 0.14 which that was the old version before the -excludes  
change.


Yeah, sorry about that - I've been rushed off my feet in the last week  
and have made a couple of stupid mistakes.


This is now corrected by a new release.

Cheers
t0m


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: AW: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Zbigniew Lukasiak
On Thu, Aug 26, 2010 at 2:27 PM, Denny <2...@denny.me> wrote:
> On Thu, 2010-08-26 at 14:23 +0200, daniel.brunkho...@dataport.de wrote:
>> > > Nope, there doesn't seem to be a Catalyst::Controller::Registration
>> > > on CPAN.  Maybe there should be.
>>
>> I wish there was and I definitely think there should be, because in
>> my opinion this is a pretty common task.
>
> I'm going to need this feature soon too...  I'd be happy to look at any
> code you write and see if we can pull it together into a generic module
> between us?  I guess it would fall under the CatalystX::Elements
> umbrella, if that's still happening.

I don't use Catalyst much recently so I don't have time to work on
that idea.  But please use the CatalystX::Elements name if you like it
- I conjured it just for stuff like this hypothetical
Catalyst::Controller::Registration.  At github there is already one
prototype element: http://github.com/zby/catalystx-elements-comments

-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread David Schmidt
On Thu, Aug 26, 2010 at 4:34 PM, Bill Moseley  wrote:
>
>
> On Thu, Aug 26, 2010 at 4:10 AM, David Schmidt  wrote:
>>
>> 1) user enters mailaddress and hits submit
>> 2) you generate a digest
>> 3) store digest + mailaddress in model
>
> I currently collect info and store and then also save the digest.  After
> seeing how much cruft get collected, I'd be tempted now to first send out
> the "invitation" to their email which brings them back to a sign-up form.
>  The invite URL can contain their email, a timeout, and a digest so nothing
> needs to be saved server side.
>
> --
> Bill Moseley
> mose...@hank.org
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>

The invite URL could contain a digest of the mailaddress, in the
signup form the mailaddress is checked against the digest and could be
verified that way.
if the digest is generated with a private key it'll  be difficult to forge it.

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Bill Moseley
On Thu, Aug 26, 2010 at 4:10 AM, David Schmidt  wrote:

>
> 1) user enters mailaddress and hits submit
> 2) you generate a digest
> 3) store digest + mailaddress in model
>

I currently collect info and store and then also save the digest.  After
seeing how much cruft get collected, I'd be tempted now to first send out
the "invitation" to their email which brings them back to a sign-up form.
 The invite URL can contain their email, a timeout, and a digest so nothing
needs to be saved server side.


-- 
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: AW: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Denny
On Thu, 2010-08-26 at 14:23 +0200, daniel.brunkho...@dataport.de wrote:
> > > Nope, there doesn't seem to be a Catalyst::Controller::Registration
> > > on CPAN.  Maybe there should be.
> 
> I wish there was and I definitely think there should be, because in 
> my opinion this is a pretty common task.

I'm going to need this feature soon too...  I'd be happy to look at any
code you write and see if we can pull it together into a generic module
between us?  I guess it would fall under the CatalystX::Elements
umbrella, if that's still happening.

Cheers,
Denny



signature.asc
Description: This is a digitally signed message part
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: AW: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Miquel Ruiz

On 26/08/2010 14:23, daniel.brunkho...@dataport.de wrote:

Thanks, Denny, for making clear what my original intention was.

Thanks, Kieren, for giving an explanation why my web search failed.

So, I guess I will implement my own procedure for registration (and 
confirmation).


It would be great if you decide to publish your solution.

I know more than one project wich will use it ;)

Regards,
Miquel Ruiz


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: AW: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Kieren Diment

On 26/08/2010, at 10:23 PM,  
 wrote:

> Thanks, Denny, for making clear what my original intention was.
> 
> Thanks, Kieren, for giving an explanation why my web search failed.
> 
> So, I guess I will implement my own procedure for registration (and 
> confirmation).
> 
>>> Nope, there doesn't seem to be a Catalyst::Controller::Registration
>>> on CPAN.  Maybe there should be.
> I wish there was and I definitely think there should be, because in my 
> opinion this is a pretty common task.

Have a look at the source to Catalyst::Controller::reCAPTCHA to get an idea of 
how you would go about keeping the implementation reasonably abstract.
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


AW: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Daniel.Brunkhorst
Thanks, Denny, for making clear what my original intention was.

Thanks, Kieren, for giving an explanation why my web search failed.

So, I guess I will implement my own procedure for registration (and 
confirmation).

>> Nope, there doesn't seem to be a Catalyst::Controller::Registration
>> on CPAN.  Maybe there should be.
I wish there was and I definitely think there should be, because in my opinion 
this is a pretty common task.

Thanks,
Daniel.


-Ursprüngliche Nachricht-
Von: Kieren Diment [mailto:dim...@gmail.com] 
Gesendet: Donnerstag, 26. August 2010 13:39
An: The elegant MVC web framework
Betreff: Re: [Catalyst] User management with Catalyst (with email and URLs)


On 26/08/2010, at 9:25 PM, Denny wrote:

> On Thu, 2010-08-26 at 13:10 +0200, David Schmidt wrote:
>> Anyways, what you want can be done with Catalyst.
>> 
>> 1) user enters mailaddress and hits submit
>> 2) you generate a digest
>> 3) store digest + mailaddress in model
>> 4) send digest in URL to mailaddress
>> 5) user klicks the link
>> 6) validate digest and request password
>> 7) store pw in db
>> 
>> catalyst makes all this very easy.
> 
> You're completely missing the point of the original message - he very
> clearly enquired about pre-rolled solutions for this sort of thing.  Of
> course he could write his own, but he'd rather not if there's a
> neatly-packaged community-managed solution already available.

Nope, there doesn't seem to be a Catalyst::Controller::Registration on CPAN.  
Maybe there should be.


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Kieren Diment

On 26/08/2010, at 9:25 PM, Denny wrote:

> On Thu, 2010-08-26 at 13:10 +0200, David Schmidt wrote:
>> Anyways, what you want can be done with Catalyst.
>> 
>> 1) user enters mailaddress and hits submit
>> 2) you generate a digest
>> 3) store digest + mailaddress in model
>> 4) send digest in URL to mailaddress
>> 5) user klicks the link
>> 6) validate digest and request password
>> 7) store pw in db
>> 
>> catalyst makes all this very easy.
> 
> You're completely missing the point of the original message - he very
> clearly enquired about pre-rolled solutions for this sort of thing.  Of
> course he could write his own, but he'd rather not if there's a
> neatly-packaged community-managed solution already available.

Nope, there doesn't seem to be a Catalyst::Controller::Registration on CPAN.  
Maybe there should be.


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Denny
On Thu, 2010-08-26 at 13:10 +0200, David Schmidt wrote:
> Anyways, what you want can be done with Catalyst.
> 
> 1) user enters mailaddress and hits submit
> 2) you generate a digest
> 3) store digest + mailaddress in model
> 4) send digest in URL to mailaddress
> 5) user klicks the link
> 6) validate digest and request password
> 7) store pw in db
> 
> catalyst makes all this very easy.

You're completely missing the point of the original message - he very
clearly enquired about pre-rolled solutions for this sort of thing.  Of
course he could write his own, but he'd rather not if there's a
neatly-packaged community-managed solution already available.


signature.asc
Description: This is a digitally signed message part
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread David Schmidt
On Thu, Aug 26, 2010 at 12:41 PM,   wrote:
>>> Basically you need to setup a model (a common one would be
>>> DBIx::Class) to store your users.
>>> (http://search.cpan.org/~rkitover/Catalyst-Model-DBIC-Schema-
>>> 0.43/lib/Catalyst/Model/DBIC/Schema.pm)
>
> I am not going to use a database for authentication, so DBIx::Class is not 
> useful for me in this case.
>
>
>>> CatalystX::SimpleLogin
>>> (http://search.cpan.org/~bobtfish/CatalystX-SimpleLogin-0.12/)
>>>
>>> Then you need to set up the Authentication Plugin
>>> (http://search.cpan.org/dist/Catalyst-Plugin-Authentication/)
>
> I was more interested in the email/URL-confirmation process and the above two 
> modules you pointed me at cannot help me with that.
>
>
> Will look at the MojoMojo code to see if I can find an interesting starting 
> point there. Thanks for your answers so far.
>
> Anyone got any more useful pointers for the email/URL-confirmation process?
>
> Cheers,
> Daniel.
>
>
> -Ursprüngliche Nachricht-
> Von: David Schmidt [mailto:davew...@gmx.at]
> Gesendet: Donnerstag, 26. August 2010 11:13
> An: The elegant MVC web framework
> Betreff: Re: [Catalyst] User management with Catalyst (with email and URLs)
>
> On Thu, Aug 26, 2010 at 10:46 AM,   wrote:
>> Dear list members,
>>
>> I guess what I am trying to do is a pretty common task for web developers.
>> So I am very astonished that a couple of hours spent searching the Internet
>> didn’t provide me with a good starting point for my efforts.
>>
>> Here’s what I would like to achieve:
>>
>> A user comes to a web page and enters his email address to join the fun. He
>> gets an email with a confirmation URL that leads him back to the site where
>> he entered his email address to begin with, he then gets a welcome message
>> and is presented a request to enter a password. With his email address and
>> the entered password he can from then on login to the protected area at any
>> time.
>>
>> And of course users do forget their passwords, so an automatic password
>> retrieval feature would come in handy, too.
>>
>> Anybody got any good pointers where to start looking for something I can
>> customize to my needs?
>>
>> I can’t imagine I am the first or only one wanting to achieve something like
>> the above using Catalyst. Right?
>>
>> Any hints appreciated.
>>
>> Thanks,
>>
>> Daniel.
>>
>> ___
>> List: Catalyst@lists.scsys.co.uk
>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>> Dev site: http://dev.catalyst.perl.org/
>>
>>
>
> Basically you need to setup a model (a common one would be
> DBIx::Class) to store your users.
> (http://search.cpan.org/~rkitover/Catalyst-Model-DBIC-Schema-0.43/lib/Catalyst/Model/DBIC/Schema.pm)
>
> CatalystX::SimpleLogin
> (http://search.cpan.org/~bobtfish/CatalystX-SimpleLogin-0.12/)
>
> Then you need to set up the Authentication Plugin
> (http://search.cpan.org/dist/Catalyst-Plugin-Authentication/)
>
> and thats pretty much it.
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>

For that approach you need to store

email address
digest used in your URL
password

somewhere, that's what the model is for.

Anyways, what you want can be done with Catalyst.

1) user enters mailaddress and hits submit
2) you generate a digest
3) store digest + mailaddress in model
4) send digest in URL to mailaddress
5) user klicks the link
6) validate digest and request password
7) store pw in db

catalyst makes all this very easy.

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


AW: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Daniel.Brunkhorst
>> Basically you need to setup a model (a common one would be
>> DBIx::Class) to store your users.
>> (http://search.cpan.org/~rkitover/Catalyst-Model-DBIC-Schema-
>> 0.43/lib/Catalyst/Model/DBIC/Schema.pm)

I am not going to use a database for authentication, so DBIx::Class is not 
useful for me in this case.


>> CatalystX::SimpleLogin
>> (http://search.cpan.org/~bobtfish/CatalystX-SimpleLogin-0.12/)
>>
>> Then you need to set up the Authentication Plugin
>> (http://search.cpan.org/dist/Catalyst-Plugin-Authentication/)

I was more interested in the email/URL-confirmation process and the above two 
modules you pointed me at cannot help me with that.


Will look at the MojoMojo code to see if I can find an interesting starting 
point there. Thanks for your answers so far.

Anyone got any more useful pointers for the email/URL-confirmation process?

Cheers,
Daniel.


-Ursprüngliche Nachricht-
Von: David Schmidt [mailto:davew...@gmx.at] 
Gesendet: Donnerstag, 26. August 2010 11:13
An: The elegant MVC web framework
Betreff: Re: [Catalyst] User management with Catalyst (with email and URLs)

On Thu, Aug 26, 2010 at 10:46 AM,   wrote:
> Dear list members,
>
> I guess what I am trying to do is a pretty common task for web developers.
> So I am very astonished that a couple of hours spent searching the Internet
> didn’t provide me with a good starting point for my efforts.
>
> Here’s what I would like to achieve:
>
> A user comes to a web page and enters his email address to join the fun. He
> gets an email with a confirmation URL that leads him back to the site where
> he entered his email address to begin with, he then gets a welcome message
> and is presented a request to enter a password. With his email address and
> the entered password he can from then on login to the protected area at any
> time.
>
> And of course users do forget their passwords, so an automatic password
> retrieval feature would come in handy, too.
>
> Anybody got any good pointers where to start looking for something I can
> customize to my needs?
>
> I can’t imagine I am the first or only one wanting to achieve something like
> the above using Catalyst. Right?
>
> Any hints appreciated.
>
> Thanks,
>
> Daniel.
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>

Basically you need to setup a model (a common one would be
DBIx::Class) to store your users.
(http://search.cpan.org/~rkitover/Catalyst-Model-DBIC-Schema-0.43/lib/Catalyst/Model/DBIC/Schema.pm)

CatalystX::SimpleLogin
(http://search.cpan.org/~bobtfish/CatalystX-SimpleLogin-0.12/)

Then you need to set up the Authentication Plugin
(http://search.cpan.org/dist/Catalyst-Plugin-Authentication/)

and thats pretty much it.

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Kiffin Gish
You might want to have a look in the MojoMojo code for an example of
something similar.

Is this is not exactly what you require, then I can provide you with
some of my own example code which does something slightly more
complicated.

-- 
Kiffin Gish 
Gouda, The Netherlands


On Thu, 2010-08-26 at 10:46 +0200, daniel.brunkho...@dataport.de wrote:
> Dear list members,
> 
> I guess what I am trying to do is a pretty common task for web
> developers. So I am very astonished that a couple of hours spent
> searching the Internet didn’t provide me with a good starting point
> for my efforts.
> 
> Here’s what I would like to achieve:
> 
> A user comes to a web page and enters his email address to join the
> fun. He gets an email with a confirmation URL that leads him back to
> the site where he entered his email address to begin with, he then
> gets a welcome message and is presented a request to enter a password.
> With his email address and the entered password he can from then on
> login to the protected area at any time.
> 
> And of course users do forget their passwords, so an automatic
> password retrieval feature would come in handy, too.
> 
> Anybody got any good pointers where to start looking for something I
> can customize to my needs?
> 
> I can’t imagine I am the first or only one wanting to achieve
> something like the above using Catalyst. Right?
> 
> Any hints appreciated.
> 
> Thanks,
> 
> Daniel.
> 
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread David Schmidt
On Thu, Aug 26, 2010 at 10:46 AM,   wrote:
> Dear list members,
>
> I guess what I am trying to do is a pretty common task for web developers.
> So I am very astonished that a couple of hours spent searching the Internet
> didn’t provide me with a good starting point for my efforts.
>
> Here’s what I would like to achieve:
>
> A user comes to a web page and enters his email address to join the fun. He
> gets an email with a confirmation URL that leads him back to the site where
> he entered his email address to begin with, he then gets a welcome message
> and is presented a request to enter a password. With his email address and
> the entered password he can from then on login to the protected area at any
> time.
>
> And of course users do forget their passwords, so an automatic password
> retrieval feature would come in handy, too.
>
> Anybody got any good pointers where to start looking for something I can
> customize to my needs?
>
> I can’t imagine I am the first or only one wanting to achieve something like
> the above using Catalyst. Right?
>
> Any hints appreciated.
>
> Thanks,
>
> Daniel.
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>

Basically you need to setup a model (a common one would be
DBIx::Class) to store your users.
(http://search.cpan.org/~rkitover/Catalyst-Model-DBIC-Schema-0.43/lib/Catalyst/Model/DBIC/Schema.pm)

CatalystX::SimpleLogin
(http://search.cpan.org/~bobtfish/CatalystX-SimpleLogin-0.12/)

Then you need to set up the Authentication Plugin
(http://search.cpan.org/dist/Catalyst-Plugin-Authentication/)

and thats pretty much it.

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Daniel.Brunkhorst
Dear list members,

I guess what I am trying to do is a pretty common task for web
developers. So I am very astonished that a couple of hours spent
searching the Internet didn't provide me with a good starting point for
my efforts.

Here's what I would like to achieve:
A user comes to a web page and enters his email address to join the fun.
He gets an email with a confirmation URL that leads him back to the site
where he entered his email address to begin with, he then gets a welcome
message and is presented a request to enter a password. With his email
address and the entered password he can from then on login to the
protected area at any time.
And of course users do forget their passwords, so an automatic password
retrieval feature would come in handy, too.

Anybody got any good pointers where to start looking for something I can
customize to my needs?

I can't imagine I am the first or only one wanting to achieve something
like the above using Catalyst. Right?

Any hints appreciated.

Thanks,
Daniel.

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/