This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZAuthConstant.php
148 lines (119 loc) · 4.77 KB
/
ZAuthConstant.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
declare(strict_types=1);
/*
* This file is part of the Zikula package.
*
* Copyright Zikula - https://ziku.la/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Zikula\ZAuthModule;
class ZAuthConstant
{
/**
* Module variable key for the minimum password length.
*/
public const MODVAR_PASSWORD_MINIMUM_LENGTH = 'minpass';
/**
* Default value for the minimum password length.
*/
public const DEFAULT_PASSWORD_MINIMUM_LENGTH = 8;
/**
* Actual minimal length for all passwords.
*/
public const PASSWORD_MINIMUM_LENGTH = 5;
/**
* Module variable key for the flag indicating whether the password strength meter should be enabled or not.
*/
public const MODVAR_PASSWORD_STRENGTH_METER_ENABLED = 'use_password_strength_meter';
/**
* Default value for the flag indicating whether the password strength meter should be enabled or not.
*/
public const DEFAULT_PASSWORD_STRENGTH_METER_ENABLED = false;
/**
* Module variable key for non compromised password
*/
public const MODVAR_REQUIRE_NON_COMPROMISED_PASSWORD = 'non_compromised_password';
/**
* default value for non compromised password
*/
public const DEFAULT_REQUIRE_UNCOMPROMISED_PASSWORD = false;
/**
* Module variable key for the status of requirement for email verification.
*/
public const MODVAR_EMAIL_VERIFICATION_REQUIRED = 'email_verification_required';
/**
* Default value for the status of requirement for email verification.
*/
public const DEFAULT_EMAIL_VERIFICATION_REQUIRED = true;
/**
* The string identifying that a user can user either the native_uname or native_email authentication methods.
*/
public const AUTHENTICATION_METHOD_EITHER = 'native_either';
/**
* The string identifying that a user can user the native_uname authentication method.
*/
public const AUTHENTICATION_METHOD_UNAME = 'native_uname';
/**
* The string identifying that a user can user the native_email authentication method.
*/
public const AUTHENTICATION_METHOD_EMAIL = 'native_email';
/**
* Module variable key for the number of days before a change of e-mail request is canceled.
*/
public const MODVAR_EXPIRE_DAYS_CHANGE_EMAIL = 'chgemail_expiredays';
/**
* Default value for the number of days before a change of e-mail request is canceled.
*/
public const DEFAULT_EXPIRE_DAYS_CHANGE_EMAIL = 0;
/**
* Module variable key for the number of days before a change of password request is canceled.
*/
public const MODVAR_EXPIRE_DAYS_CHANGE_PASSWORD = 'chgpass_expiredays';
/**
* Default value for the number of days before a change of password request is canceled.
*/
public const DEFAULT_EXPIRE_DAYS_CHANGE_PASSWORD = 0;
/**
* Module variable key for the number of days until a new registration expires if the e-mail address is not verified.
*/
public const MODVAR_EXPIRE_DAYS_REGISTRATION = 'reg_expiredays';
/**
* Default value for the number of days until a new registration expires if the e-mail address is not verified.
*/
public const DEFAULT_EXPIRE_DAYS_REGISTRATION = 0;
/**
* Module variable key for the anti-spam registration question answer text.
*/
public const MODVAR_REGISTRATION_ANTISPAM_ANSWER = 'reg_answer';
/**
* Module variable key for the anti-spam registration question text.
*/
public const MODVAR_REGISTRATION_ANTISPAM_QUESTION = 'reg_question';
/**
* An indicator for the change verification table that the record represents a change of password request.
*/
public const VERIFYCHGTYPE_PWD = 1;
/**
* An indicator for the change verification table that the record represents a change of e-mail address request, pending e-mail address verification.
*/
public const VERIFYCHGTYPE_EMAIL = 2;
/**
* An indicator for the change verification table that the record represents a registration e-mail verification.
*/
public const VERIFYCHGTYPE_REGEMAIL = 3;
/**
* Key used as a UserAttribute that indicates a user is required to change his password on next login.
* Set value to (bool) TRUE if change is required. The existence of the key and the value are both tested.
*/
public const REQUIRE_PASSWORD_CHANGE_KEY = '_Users_mustChangePassword';
/**
* Module variable key for the number of items (e.g., records) to display per list "page."
*/
public const MODVAR_ITEMS_PER_PAGE = 'itemsperpage';
/**
* Default value for the number of items (e.g., records) to display per list "page."
*/
public const DEFAULT_ITEMS_PER_PAGE = 25;
}