From f6c98b1992db60c1736ce02bca335788ff9d6cb3 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Mon, 7 May 2012 14:18:15 +1200 Subject: [PATCH] BUGFIX: Increase size of varchar fields on MemberPassword to match those defined in Member. This fixes issues when the password hash is longer than 50 characters, and was being truncated when saved in MemberPassword. --- security/MemberPassword.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security/MemberPassword.php b/security/MemberPassword.php index df28ae4e3..188186e9c 100644 --- a/security/MemberPassword.php +++ b/security/MemberPassword.php @@ -6,9 +6,9 @@ */ class MemberPassword extends DataObject { static $db = array( - 'Password' => 'Varchar', - 'Salt' => 'Varchar', - 'PasswordEncryption' => 'Varchar', + 'Password' => 'Varchar(160)', + 'Salt' => 'Varchar(50)', + 'PasswordEncryption' => 'Varchar(50)', ); static $has_one = array(