On Thu, May 22, 2008 at 12:48 PM, Stephan Jennewein <[EMAIL PROTECTED]> wrote: > Hi, > > what's the common way to add user with encrypted passwords with the algorithm > i've chosen in the config . There are nice plugins for authenticating users > but no for create new users. I tried to write a hook for the schema, but it > won't work. Can anyone give me a working solution ? > > Stephan >
That depends how you are storing the users, which you didn't really explain. I'll just assume that you are using Catalyst::Authentication::Store::DBIx::Class and have a DBIx::Class schema class that you store your users in. If that assumption is correct, simply use DBIx::Class::EncodedColumn http://search.cpan.org/~groditi/DBIx-Class-EncodedColumn-0.00001/lib/DBIx/Class/EncodedColumn.pm -J _______________________________________________ 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/
