mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 02:04:35 +02:00
Bump version to 3.0.223
This commit is contained in:
@@ -57,7 +57,11 @@ class Password extends Wire {
|
|||||||
|
|
||||||
if(strlen($hash) < 29) return false;
|
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) {
|
if($matches && $updateNotify) {
|
||||||
$this->message($this->_('The password system has recently been updated. Please change your password to complete the update for your account.'));
|
$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
|
* #pw-group-internal
|
||||||
*
|
*
|
||||||
* @param string $key
|
* @param string $name
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function __get($key) {
|
public function __get($name) {
|
||||||
if($key == 'salt' && !$this->data['salt']) $this->data['salt'] = $this->salt();
|
if($name === 'salt' && empty($this->data['salt'])) $this->data['salt'] = $this->salt();
|
||||||
return isset($this->data[$key]) ? $this->data[$key] : null;
|
return isset($this->data[$name]) ? $this->data[$name] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -91,7 +95,7 @@ class Password extends Wire {
|
|||||||
*/
|
*/
|
||||||
public function __set($key, $value) {
|
public function __set($key, $value) {
|
||||||
|
|
||||||
if($key == 'pass') {
|
if($key === 'pass') {
|
||||||
// setting the password
|
// setting the password
|
||||||
$this->setPass($value);
|
$this->setPass($value);
|
||||||
|
|
||||||
@@ -358,4 +362,3 @@ class Password extends Wire {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -79,7 +79,7 @@ class ProcessWire extends Wire {
|
|||||||
* Reversion revision number
|
* Reversion revision number
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
const versionRevision = 222;
|
const versionRevision = 223;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Version suffix string (when applicable)
|
* Version suffix string (when applicable)
|
||||||
|
Reference in New Issue
Block a user