mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Reduced VARCHAR length from 1024 to 40 bytes, which fits the sha1 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
This commit is contained in:
parent
1222b4d146
commit
674d8e0f4a
@ -11,18 +11,18 @@ class Member extends DataObject {
|
|||||||
'Surname' => 'Varchar',
|
'Surname' => 'Varchar',
|
||||||
'Email' => 'Varchar',
|
'Email' => 'Varchar',
|
||||||
'Password' => 'Varchar(160)',
|
'Password' => 'Varchar(160)',
|
||||||
'RememberLoginToken' => 'Varchar(1024)',
|
'RememberLoginToken' => 'Varchar(40)',
|
||||||
'NumVisit' => 'Int',
|
'NumVisit' => 'Int',
|
||||||
'LastVisited' => 'SS_Datetime',
|
'LastVisited' => 'SS_Datetime',
|
||||||
'Bounced' => 'Boolean', // Note: This does not seem to be used anywhere.
|
'Bounced' => 'Boolean', // Note: This does not seem to be used anywhere.
|
||||||
'AutoLoginHash' => 'Varchar(1024)',
|
'AutoLoginHash' => 'Varchar(40)',
|
||||||
'AutoLoginExpired' => 'SS_Datetime',
|
'AutoLoginExpired' => 'SS_Datetime',
|
||||||
// This is an arbitrary code pointing to a PasswordEncryptor instance,
|
// This is an arbitrary code pointing to a PasswordEncryptor instance,
|
||||||
// not an actual encryption algorithm.
|
// not an actual encryption algorithm.
|
||||||
// Warning: Never change this field after its the first password hashing without
|
// Warning: Never change this field after its the first password hashing without
|
||||||
// providing a new cleartext password as well.
|
// providing a new cleartext password as well.
|
||||||
'PasswordEncryption' => "Varchar(50)",
|
'PasswordEncryption' => "Varchar(50)",
|
||||||
'Salt' => 'Varchar(50)',
|
'Salt' => 'Varchar(40)',
|
||||||
'PasswordExpiry' => 'Date',
|
'PasswordExpiry' => 'Date',
|
||||||
'LockedOutUntil' => 'SS_Datetime',
|
'LockedOutUntil' => 'SS_Datetime',
|
||||||
'Locale' => 'Varchar(6)',
|
'Locale' => 'Varchar(6)',
|
||||||
|
Loading…
Reference in New Issue
Block a user