-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathAuth.php
More file actions
117 lines (104 loc) · 6.13 KB
/
Auth.php
File metadata and controls
117 lines (104 loc) · 6.13 KB
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
<?php
declare(strict_types=1);
/**
* This file is part of CodeIgniter Shield.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
return [
// Exceptions
'unknownAuthenticator' => '{0} is not a valid authenticator.',
'unknownUserProvider' => 'Unable to determine the User Provider to use.',
'invalidUser' => 'Unable to locate the specified user.',
'bannedUser' => 'Can not log you in as you are currently banned.',
'logOutBannedUser' => 'You have been logged out because you have been banned.',
'badAttempt' => 'Unable to log you in. Please check your credentials.',
'noPassword' => 'Cannot validate a user without a password.',
'invalidPassword' => 'Unable to log you in. Please check your password.',
'noToken' => 'Every request must have a bearer token in the {0} header.',
'badToken' => 'The access token is invalid.',
'oldToken' => 'The access token has expired.',
'noUserEntity' => 'User Entity must be provided for password validation.',
'invalidEmail' => 'Unable to verify the email address "{0}" matches the email on record.',
'unableSendEmailToUser' => 'Sorry, there was a problem sending the email. We could not send an email to "{0}".',
'throttled' => 'Too many requests made from this IP address. You may try again in {0} seconds.',
'notEnoughPrivilege' => 'You do not have the necessary permission to perform the desired operation.',
// JWT Exceptions
'invalidJWT' => 'The token is invalid.',
'expiredJWT' => 'The token has expired.',
'beforeValidJWT' => 'The token is not yet available.',
'email' => 'Email Address',
'username' => 'Username',
'password' => 'Password',
'passwordConfirm' => 'Password (again)',
'haveAccount' => 'Already have an account?',
'token' => 'Token',
// Buttons
'confirm' => 'Confirm',
'send' => 'Send',
// Registration
'register' => 'Register',
'registerDisabled' => 'Registration is not currently allowed.',
'registerSuccess' => 'Welcome aboard!',
// Login
'login' => 'Login',
'needAccount' => 'Need an account?',
'rememberMe' => 'Remember me?',
'forgotPassword' => 'Forgot your password?',
'useMagicLink' => 'Use a Login Link',
'magicLinkSubject' => 'Your Login Link',
'magicTokenNotFound' => 'Unable to verify the link.',
'magicLinkExpired' => 'Sorry, link has expired.',
'checkYourEmail' => 'Check your email!',
'magicLinkDetails' => 'We just sent you an email with a Login link inside. It is only valid for {0} minutes.',
'magicLinkDisabled' => 'Use of MagicLink is currently not allowed.',
'successLogout' => 'You have successfully logged out.',
'backToLogin' => 'Back to Login',
// Passwords
'errorPasswordLength' => 'Passwords must be at least {0, number} characters long.',
'suggestPasswordLength' => 'Pass phrases - up to 255 characters long - make more secure passwords that are easy to remember.',
'errorPasswordCommon' => 'Password must not be a common password.',
'suggestPasswordCommon' => 'The password was checked against over 65k commonly used passwords or passwords that have been leaked through hacks.',
'errorPasswordPersonal' => 'Passwords cannot contain re-hashed personal information.',
'suggestPasswordPersonal' => 'Variations on your email address or username should not be used for passwords.',
'errorPasswordTooSimilar' => 'Password is too similar to the username.',
'suggestPasswordTooSimilar' => 'Do not use parts of your username in your password.',
'errorPasswordPwned' => 'The password {0} has been exposed due to a data breach and has been seen {1, number} times in {2} of compromised passwords.',
'suggestPasswordPwned' => '{0} should never be used as a password. If you are using it anywhere change it immediately.',
'errorPasswordEmpty' => 'A Password is required.',
'errorPasswordTooLongBytes' => 'Password cannot exceed {param} bytes in length.',
'passwordChangeSuccess' => 'Password changed successfully',
'userDoesNotExist' => 'Password was not changed. User does not exist',
'resetTokenExpired' => 'Sorry. Your reset token has expired.',
// Email Globals
'emailInfo' => 'Some information about the person:',
'emailIpAddress' => 'IP Address:',
'emailDevice' => 'Device:',
'emailDate' => 'Date:',
// 2FA
'email2FATitle' => 'Two Factor Authentication',
'confirmEmailAddress' => 'Confirm your email address.',
'emailEnterCode' => 'Confirm your Email',
'emailConfirmCode' => 'Enter the 6-digit code we just sent to your email address.',
'email2FASubject' => 'Your authentication code',
'email2FAMailBody' => 'Your authentication code is:',
'invalid2FAToken' => 'The code was incorrect.',
'need2FA' => 'You must complete a two-factor verification.',
'needVerification' => 'Check your email to complete account activation.',
// Activate
'emailActivateTitle' => 'Email Activation',
'emailActivateBody' => 'We just sent an email to you with a code to confirm your email address. Copy that code and paste it below.',
'emailActivateSubject' => 'Your activation code',
'emailActivateMailBody' => 'Please use the code below to activate your account and start using the site.',
'invalidActivateToken' => 'The code was incorrect.',
'needActivate' => 'You must complete your registration by confirming the code sent to your email address.',
'activationBlocked' => 'You must activate your account before logging in.',
// Groups
'unknownGroup' => '{0} is not a valid group.',
'missingTitle' => 'Groups must have a title.',
// Permissions
'unknownPermission' => '{0} is not a valid permission.',
];