Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
Config
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2/**
3 * Class used to define Config.
4 *
5 * @package automattic/jetpack-account-protection
6 */
7
8namespace Automattic\Jetpack\Account_Protection;
9
10/**
11 * Class Config
12 */
13class Config {
14    public const PREFIX                               = 'jetpack_account_protection';
15    public const SUPPORT_LINK                         = 'https://jetpack.com/?post_type=jetpack_support&p=324199';
16    public const RECENT_PASSWORD_HASHES_USER_META_KEY = self::PREFIX . '_recent_password_hashes';
17
18    // Password Detection Constants
19    public const PASSWORD_DETECTION_EMAIL_SENT_EXPIRATION = 600; // 10 minutes
20    public const PASSWORD_DETECTION_EMAIL_REQUEST_LIMIT   = 4;
21
22    // Password Manager Constants
23    public const PASSWORD_MANAGER_RECENT_PASSWORDS_LIMIT = 10;
24
25    // Validation Service Constants
26    public const VALIDATION_SERVICE_MIN_LENGTH = 6;
27    public const VALIDATION_SERVICE_MAX_LENGTH = 150;
28}