Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix auth config/code

  • Loading branch information...
commit 68d63e8633f6c22fb78c100fc54faecee1b6bd8e 1 parent c4d4192
@castaway authored
View
5 lib/PresentingPerl/Schema/Result/User.pm
@@ -101,6 +101,11 @@ __PACKAGE__->has_many(
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-12-03 14:51:10
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LdcXqKuNwSPcZp4qrNP8mw
+sub check_password {
+ my ($self, $passp) = @_;
+
+ return $self->password->match($passp);
+}
# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
View
7 presentingperl_web.conf
@@ -14,9 +14,10 @@ default_view TT
<credential>
class Password
- password_field 'password'
- password_type salted_hash
- password_salt_len 4
+ password_field password
+ password_type self_check
+# password_type salted_hash
+# password_salt_len 4
</credential>
<store>
Please sign in to comment.
Something went wrong with that request. Please try again.