projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d5c69e
)
DataObjects/Core_person.php
author
Alan Knowles
<alan@roojs.com>
Fri, 7 Jul 2017 06:32:41 +0000
(14:32 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 7 Jul 2017 06:32:41 +0000
(14:32 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
5020fb6
..
1de318b
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-504,8
+504,9
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
if (substr($this->passwd,0,1) == '$') {
- if (password_e)
-
+ if (function_exists('pasword_verify')) {
+ return password_verify($val, $this->passwd);
+ }
return crypt($val,$this->passwd) == $this->passwd ;
}
// old style md5 passwords...- cant be used with courier....
@@
-514,7
+515,7
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
function setPassword($value)
{
- if (func_exists('pasword_hash')) {
+ if (func
tion
_exists('pasword_hash')) {
return password_hash($value);
}