Permalink
Browse files

BUGFIX: Increase size of varchar fields on MemberPassword to match th…

…ose defined in Member. This fixes issues when the password hash is longer than 50 characters, and was being truncated when saved in MemberPassword.
  • Loading branch information...
1 parent 5cf3720 commit f6c98b1992db60c1736ce02bca335788ff9d6cb3 @andrewandante andrewandante committed May 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 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(

0 comments on commit f6c98b1

Please sign in to comment.