On Wed, Oct 5, 2011 at 5:42 AM, Denny <[email protected]> wrote:
> Discussion in #catalyst when I was writing that bit of the code didn't
> really reach a conclusion on whether it was 'safe' to use it, but nobody had
> a better suggestion.
>
Set up a separate authentication realm that doesn't require a password.
my $auth_config = {
default_realm => 'normal',
realms => {
normal => {
credential => {
class => 'Password',
password_field => 'password',
password_type => 'self_check',
},
store => {
class => 'DBIx::Class',
user_model => 'MyDB::User',
},
},
nopass => {
credential => {
class => 'Password',
password_type => 'none',
},
store => {
class => 'DBIx::Class',
user_model => 'MyDB::User',
},
},
},
};
$c->authenticate({ id => $id },'nopass');
--
Stephen Clouse <[email protected]>
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/