[Catalyst] forcing authentication without credentials

Yuval Kogman nothingmuch at woobling.org
Thu Jul 27 23:05:53 CEST 2006


On Thu, Jul 27, 2006 at 12:57:52 -0600, Nathan Kurz wrote:
> I've working on something where I feel the need to mark a user as
> authenticated even though I don't have any credentials for them.
> 
> I'd like to say something like:
>   my $user = $c->model('DB::User')->create({...});
>   $c->login($user);
> 
> This doesn't work (for reasons that I understand), but I haven't been
> able to figure out the right way to do this.  I thought I'd be able to
> do it with $c->set_authenticated(), but I haven't had any success.

set_authenticated *should* work. Please paste more code and some
config, I'd like to debug this.

-- 
  Yuval Kogman <nothingmuch at woobling.org>
http://nothingmuch.woobling.org  0xEBD27418

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060728/6678d09c/attachment-0001.pgp 


More information about the Catalyst mailing list