PHPAuth Versions Save

PHPAuth is a secure PHP Authentication class that easily integrates into any site.

1.5.0

10 months ago

Completly removed uses of bjeavons/zxcvbn-php package from PHPAuth Core. See CUSTOM_VALIDATORS.md. Package added to 'suggest' section of composer.json

Please use:

use ZxcvbnPhp\Zxcvbn;

$config = $config->setPasswordValidator(static function($password) use ($config) {
    return (bool)((new Zxcvbn())->passwordStrength($password)['score'] >= intval($config->password_min_score));
});

1.4.10

10 months ago
  • [+] added __lang() method in trait Helpers. Supported new to legacy key conversion.
  • [-] removed duplicated emails from database_emails_banned.sql
  • [-] removed strict PDO type from constructors of Auth and Config. This is done because not only the PDO, but also a wrapper over the PDO can be passed as a connection.
  • [*] changed some message codes (for more clarity)
  • [+] for a number of configuration variables, the zero value is now available. A value of zero means that the check for this rule should be skipped. So, verify_email_min_length = 0 means that the email is not checked for the minimum length.
  • [+] added two rules for setForgottenDefaults(): verify_email_valid TRUE, verify_email_use_banlist TRUE
  • [+] added setCaptchaValidator implementation
  • [+] Config::__set() now saving settings to DB only if Config type is SQL
  • [-] removed database_informix.sql
  • [*] fix tests: runs testRegister() and testLogin() in separate process (prevents 'headers already sent' error)
  • [*] fixed setLocalization() method

see also DEPRECATION_WARNING.md

1.4.4

11 months ago

Added Session Authentication to the PHPAuth Core Class. Users can now choose between using a Session or a Cookie by setting the 'use_session' configuration option to 1 or 0

1.4.3

1 year ago

Fixed #532 , Undefined class constant 'self::TOKEN_LENGTH'

1.4.1

1 year ago

1.4.0

1 year ago

This release is equal to 1.3.5 version, but must be 1.4.0, because changed a lot of minor functionality.

Minor changes

  • [!] recommended version for composer is latest, NOT dev-master
  • [!] minimal PHP required 7.2.*
  • [!] added mb-string dependency, because using mb_strtolower instead of strtolower (email can have non-english domain)
  • [!] All dies replaced with RuntimeException

Minor additions

  • [+] added "phpauth/phpauth.l10n" to composer.json suggests
  • [+] added custom password and email validator
  • [+] add Config::setLocalization() method that update config's internal dictionary from given array.
  • [+] add Config::setCustomMailer() method - future custom closure for sendMail method
  • [+] please, use deleteExpiredData() instead of cron()
  • [+] export script from SQL dictionary to PHP file

Fixes

  • [*] Added ConfigInterface and AuthInterface
  • [*] refactored checkTableExists() method. Uses different detection methods for separate drivers
  • [*] Source files moved to sources/ directory. Updated autoload/psr-4 section at composer.json
  • [*] Zxcvbn moved to separate method (isPasswordStrong)
  • [*] configuration types declared as ConfigInterface public constants
  • [*] documentation fixes
  • [*] Updated localization dictionary generation: if message not found in custom dictionary - used message from en_GB dictionary.
  • [*] Updated getForgottenDictionary() method
  • [*] Moved methods to Helper class: getForgottenDictionary(), getIP, getRandomKey(), getHash()

1.3.5

1 year ago

See 1.4.0 description

1.3.4

2 years ago

v1.3.2

2 years ago

Version fix: 1.3.2