Skip to content

Commit a7b30fb

Browse files
author
Christian Blanquera
committed
upgrading password hash, since 2001, lol
1 parent 2026d8b commit a7b30fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Model/Formatter.php

+2
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ public function formatData(array $data, $fieldset = null)
160160

161161
break;
162162
case 'password':
163+
$data[$name] = password_hash($data[$name], PASSWORD_DEFAULT);
164+
break;
163165
case 'md5':
164166
$data[$name] = md5($data[$name]);
165167
break;

0 commit comments

Comments
 (0)