Browse Source

updated CHANGES.md & Config/Aauth (renamed recaptcha to captcha & added $captchaType)

v3-dev
REJack 6 years ago
parent
commit
13eaf50f80
No known key found for this signature in database
GPG Key ID: 4A44B48700429F46
  1. 39
      CHANGES.md
  2. 39
      app/Config/Aauth.php

39
CHANGES.md

@ -37,6 +37,18 @@
## CONFIG ## CONFIG
### ADDED
- loginRememberCookie
- loginSingleMode
- loginAccurateErrors
- captchaType
- dbReturnType
- dbTableUserSessions
- dbTableGroupVariables
- dbSoftDeleteUsers
- dbSoftDeleteGroups
- dbSoftDeletePerms
### RENAMED ### RENAMED
- no_permission => linkNoPermission - no_permission => linkNoPermission
- reset_password_link => linkResetPassword - reset_password_link => linkResetPassword
@ -58,10 +70,10 @@
- totp_only_on_ip_change => totpOnIpChange - totp_only_on_ip_change => totpOnIpChange
- totp_reset_over_reset_password => totpResetPassword - totp_reset_over_reset_password => totpResetPassword
- totp_two_step_login => totpLoginDisabled - totp_two_step_login => totpLoginDisabled
- recaptcha_active => recaptchaEnabled - recaptcha_active => captchaEnabled
- recaptcha_login_attempts => recaptchaLoginAttempts - recaptcha_login_attempts => captchaLoginAttempts
- recaptcha_siteKey => recaptchaSiteKey - recaptcha_siteKey => captchaSiteKey
- recaptcha_secret => recaptchaSecret - recaptcha_secret => captchaSecret
- email => emailFrom - email => emailFrom
- name => emailFromName - name => emailFromName
- email_config => emailConfig - email_config => emailConfig
@ -100,6 +112,12 @@
- removed `verification_code` (moved to User System Variable) - removed `verification_code` (moved to User System Variable)
- removed `totp_secret` (moved to User System Variable) - removed `totp_secret` (moved to User System Variable)
### USER SESSIONS
- added `id` 'VARCHAR(128)' PKey A_I
- added `ip_address` 'VARCHAR(45)'
- added `timestamp` 'INT(10)'
- added `data` 'TEXT'
### USER VARIABLES ### USER VARIABLES
- renamed `value` to `data_value` - renamed `value` to `data_value`
- added `created_at` 'DATETIME' - added `created_at` 'DATETIME'
@ -126,6 +144,15 @@
- added `created_at` 'DATETIME' - added `created_at` 'DATETIME'
- added `updated_at` 'DATETIME' - added `updated_at` 'DATETIME'
### GROUP VARIABLES
- added `id` 'INT(11)' PKey A_I
- added `group_id` 'INT(11)'
- added `data_key` 'VARCHAR(100)'
- added `data_value` 'TEXT'
- added `created_at` 'DATETIME'
- added `updated_at` 'DATETIME'
- added `system` 'TINYINT(1)'
### PERMS ### PERMS
- added `created_at` 'DATETIME' - added `created_at` 'DATETIME'
- added `updated_at` 'DATETIME' - added `updated_at` 'DATETIME'
@ -164,8 +191,8 @@
- aauth_error_update_username_exists => existsAlreadyUsername - aauth_error_update_username_exists => existsAlreadyUsername
- aauth_info_group_exists => existsAlreadyGroup - aauth_info_group_exists => existsAlreadyGroup
- aauth_info_perm_exists => existsAlreadyPerm - aauth_info_perm_exists => existsAlreadyPerm
- aauth_error_username_required => requiredUsername - aauth_error_username_required => quiredUsername
- aauth_error_totp_code_required => requiredTOTPCode - aauth_error_totp_code_required => quiredTOTPCode
- aauth_error_no_user => notFoundUser - aauth_error_no_user => notFoundUser
- aauth_error_no_group => notFoundGroup - aauth_error_no_group => notFoundGroup
- aauth_error_no_subgroup => notFoundSubgroup - aauth_error_no_subgroup => notFoundSubgroup

39
app/Config/Aauth.php

@ -242,33 +242,42 @@ class Aauth extends BaseConfig
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| reCAPTCHA Variables | CAPTCHA Variables
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| 'recaptchaEnabled' | 'captchaEnabled'
| |
| Enables reCAPTCHA (for details see www.google.com/recaptcha/admin) | Enables CAPTCHA
| (default: 'admin@example.com') | (default: false)
| |
| 'recaptchaLoginAttempts' | 'captchaType'
| |
| Login Attempts to display reCAPTCHA | CAPTCHA Types
| (default: '') | Available Options:
| - 'recaptcha' (for details see https://www.google.com/captcha/admin)
| - 'hcaptcha' (for details see https://hcaptcha.com/docs)
| (default: 'recaptcha')
|
| 'captchaLoginAttempts'
|
| Login Attempts to display CAPTCHA
| (default: 6)
| |
| 'recaptchaSiteKey' | 'captchaSiteKey'
| |
| The reCAPTCHA siteKey | The CAPTCHA siteKey
| (default: '') | (default: '')
| |
| 'recaptchaSecret' | 'captchaSecret'
| |
| The reCAPTCHA secretKey | The CAPTCHA secretKey
| (default: '') | (default: '')
*/ */
public $recaptchaEnabled = false; public $captchaEnabled = false;
public $recaptchaLoginAttempts = 6; public $captchaType = 'recaptcha';
public $recaptchaSiteKey = ''; public $captchaLoginAttempts = 6;
public $recaptchaSecret = ''; public $captchaSiteKey = '';
public $captchaSecret = '';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

Loading…
Cancel
Save