Skip to content

Instantly share code, notes, and snippets.

@SysPete
Created September 30, 2014 08:44
Show Gist options
  • Save SysPete/207cb5dd76b3642647d0 to your computer and use it in GitHub Desktop.
Save SysPete/207cb5dd76b3642647d0 to your computer and use it in GitHub Desktop.
switch password to simple Digest
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