[Jifty-commit] r6206 - jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Mixin/Model
Jifty commits
jifty-commit at lists.jifty.org
Thu Jan 8 04:53:34 EST 2009
Author: sunnavy
Date: Thu Jan 8 04:53:34 2009
New Revision: 6206
Modified:
jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Mixin/Model/User.pm
Log:
use __value to get password
Modified: jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Mixin/Model/User.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Mixin/Model/User.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Mixin/Model/User.pm Thu Jan 8 04:53:34 2009
@@ -93,8 +93,8 @@
my $self = shift;
my $pass = shift;
- return undef unless $self->_value('password');
- my ($hash, $salt) = @{$self->_value('password')};
+ return undef unless $self->__value('password');
+ my ($hash, $salt) = @{$self->__value('password')};
return 1 if ( $hash eq Digest::MD5::md5_hex($pass . $salt) );
return undef;
@@ -115,7 +115,7 @@
my $hash = shift;
my $token = shift;
- my $password = $self->_value('password');
+ my $password = $self->__value('password');
return $password && Digest::MD5::md5_hex("$token " . $password->[0]) eq $hash;
}
More information about the Jifty-commit
mailing list