Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl-cms.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
10f9463
)
inc password_hash backport in one more place
author
Jason Woofenden
<jason@jasonwoof.com>
Mon, 4 Apr 2016 23:00:37 +0000
(19:00 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Mon, 4 Apr 2016 23:00:37 +0000
(19:00 -0400)
login.php
patch
|
blob
|
history
diff --git
a/login.php
b/login.php
index
e632334
..
10c7243
100644
(file)
--- a/
login.php
+++ b/
login.php
@@
-37,6
+37,9
@@
function login_main() {
}
if ($password_good) {
if ($needs_rehash) {
+ if (!function_exists('password_hash')) {
+ require_once(DOCROOT . 'inc/password_funcs_backported.php');
+ }
$hash = password_hash($data['password'], PASSWORD_DEFAULT);
db_update('users', 'password', $hash, 'where id=%i', $row['id']);
}