diff options
Diffstat (limited to 'http')
| -rw-r--r-- | http/public/do/bcrypt.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/http/public/do/bcrypt.php b/http/public/do/bcrypt.php index 00eda33..3eb1b83 100644 --- a/http/public/do/bcrypt.php +++ b/http/public/do/bcrypt.php @@ -50,13 +50,8 @@ if ($hash === false) { exit; } -header('Content-Type: application/json; charset=utf-8'); +header('Content-Type: text/plain; charset=utf-8'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Pragma: no-cache'); -echo json_encode([ - 'user' => $user, - 'pass_hash' => $hash, - 'algo' => password_get_info($hash)['algoName'], - 'cost' => BCRYPT_COST, -], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES), "\n"; +echo $user . $hash; |
