Created
September 30, 2014 08:44
-
-
Save SysPete/207cb5dd76b3642647d0 to your computer and use it in GitHub Desktop.
switch password to simple Digest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Interchange6::Schema; | |
use strict; | |
use warnings; | |
use base 'DBIx::Class::Schema'; | |
use Interchange6::Schema::Result::User; | |
Interchange6::Schema::Result::User->load_components( | |
qw( EncodedColumn InflateColumn::DateTime TimeStamp ) | |
); | |
Interchange6::Schema::Result::User->add_column( | |
password => { | |
data_type => 'char', | |
size => 40, | |
encode_column => 1, | |
encode_class => 'Digest', | |
encode_check_method => 'check_password', | |
} | |
); | |
__PACKAGE__->load_namespaces; | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment