Skip to content

Commit

Permalink
Sql field expansion from 191 to 255
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Jul 24, 2021
1 parent f63d321 commit 0c430b7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/libraries/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ class User implements IDatabaseObject, JsonSerializable
const DEFAULT_TZ = 'Etc/UTC';

// Maximum SQL field lengths, alter as appropriate
const MAX_DISPLAY_NAME = 191;
const MAX_EMAIL = 191;
const MAX_DISPLAY_NAME = 0xFF;
const MAX_EMAIL = 0xFF;
const MAX_ID = 0x7FFFFFFFFFFFFFFF;
const MAX_OPTIONS = 0x7FFFFFFFFFFFFFFF;
const MAX_PASSWORD_HASH = 191;
const MAX_PASSWORD_SALT = 191;
const MAX_TIMEZONE = 191;
const MAX_USERNAME = 191;
const MAX_VERIFIER_TOKEN = 191;
const MAX_PASSWORD_HASH = 0xFF;
const MAX_PASSWORD_SALT = 0xFF;
const MAX_TIMEZONE = 0xFF;
const MAX_USERNAME = 0xFF;
const MAX_VERIFIER_TOKEN = 0xFF;

const OPTION_DISABLED = 0x00000001; // User login disabled, active sessions force-expired
const OPTION_VERIFIED = 0x00000002; // A token sent via email was returned to us
Expand Down

0 comments on commit 0c430b7

Please sign in to comment.