Permalink
Browse files

MINOR Reduced VARCHAR length from 1024 to 40 bytes, which fits the sh…

…a1 hashes created by RandomGenerator. 1024 bytes caused problems with index lengths on MySQL

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@114743 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 1222b4d commit 674d8e0f4a11f44b8ded5876f56942cbb964830d @chillu chillu committed Dec 9, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 security/Member.php
View
@@ -11,18 +11,18 @@ class Member extends DataObject {
'Surname' => 'Varchar',
'Email' => 'Varchar',
'Password' => 'Varchar(160)',
- 'RememberLoginToken' => 'Varchar(1024)',
+ 'RememberLoginToken' => 'Varchar(40)',
'NumVisit' => 'Int',
'LastVisited' => 'SS_Datetime',
'Bounced' => 'Boolean', // Note: This does not seem to be used anywhere.
- 'AutoLoginHash' => 'Varchar(1024)',
+ 'AutoLoginHash' => 'Varchar(40)',
'AutoLoginExpired' => 'SS_Datetime',
// This is an arbitrary code pointing to a PasswordEncryptor instance,
// not an actual encryption algorithm.
// Warning: Never change this field after its the first password hashing without
// providing a new cleartext password as well.
'PasswordEncryption' => "Varchar(50)",
- 'Salt' => 'Varchar(50)',
+ 'Salt' => 'Varchar(40)',
'PasswordExpiry' => 'Date',
'LockedOutUntil' => 'SS_Datetime',
'Locale' => 'Varchar(6)',

0 comments on commit 674d8e0

Please sign in to comment.