1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-06 23:06:59 +02:00

Bump version to 3.0.223

This commit is contained in:
Ryan Cramer
2023-07-21 15:18:41 -04:00
parent cdba83f115
commit 98aa3b2dab
2 changed files with 12 additions and 9 deletions

View File

@@ -56,8 +56,12 @@ class Password extends Wire {
}
if(strlen($hash) < 29) return false;
$matches = ($hash === $this->data['hash']);
if(function_exists("\\hash_equals")) {
$matches = hash_equals($this->data['hash'], $hash);
} else {
$matches = ($hash === $this->data['hash']);
}
if($matches && $updateNotify) {
$this->message($this->_('The password system has recently been updated. Please change your password to complete the update for your account.'));
@@ -71,13 +75,13 @@ class Password extends Wire {
*
* #pw-group-internal
*
* @param string $key
* @param string $name
* @return mixed
*
*/
public function __get($key) {
if($key == 'salt' && !$this->data['salt']) $this->data['salt'] = $this->salt();
return isset($this->data[$key]) ? $this->data[$key] : null;
public function __get($name) {
if($name === 'salt' && empty($this->data['salt'])) $this->data['salt'] = $this->salt();
return isset($this->data[$name]) ? $this->data[$name] : null;
}
/**
@@ -91,7 +95,7 @@ class Password extends Wire {
*/
public function __set($key, $value) {
if($key == 'pass') {
if($key === 'pass') {
// setting the password
$this->setPass($value);
@@ -358,4 +362,3 @@ class Password extends Wire {
}
}

View File

@@ -79,7 +79,7 @@ class ProcessWire extends Wire {
* Reversion revision number
*
*/
const versionRevision = 222;
const versionRevision = 223;
/**
* Version suffix string (when applicable)