Reworked api login to just need a session_key for everything
This commit is contained in:
parent
1d02854c96
commit
68b66d431c
9 changed files with 271 additions and 214 deletions
|
@ -107,7 +107,7 @@ Related object: L<Pear::LocalLoop::Schema::Result::User>
|
|||
=cut
|
||||
|
||||
__PACKAGE__->belongs_to(
|
||||
"useridassignedto_fk",
|
||||
"user",
|
||||
"Pear::LocalLoop::Schema::Result::User",
|
||||
{ userid => "useridassignedto_fk" },
|
||||
{ is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
|
||||
|
|
|
@ -25,7 +25,7 @@ use base 'DBIx::Class::Core';
|
|||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->load_components("InflateColumn::DateTime");
|
||||
__PACKAGE__->load_components("InflateColumn::DateTime", "PassphraseColumn");
|
||||
|
||||
=head1 TABLE: C<Users>
|
||||
|
||||
|
@ -82,7 +82,18 @@ __PACKAGE__->add_columns(
|
|||
"joindate",
|
||||
{ data_type => "datetime", is_nullable => 0 },
|
||||
"hashedpassword",
|
||||
{ data_type => "text", is_nullable => 0 },
|
||||
{
|
||||
data_type => "varchar",
|
||||
is_nullable => 0,
|
||||
size => 100,
|
||||
passphrase => 'crypt',
|
||||
passphrase_class => 'BlowfishCrypt',
|
||||
passphrase_args => {
|
||||
salt_random => 1,
|
||||
cost => 8,
|
||||
},
|
||||
passphrase_check_method => 'check_password',
|
||||
},
|
||||
);
|
||||
|
||||
=head1 PRIMARY KEY
|
||||
|
|
Reference in a new issue