Skip to content

Commit

Permalink
Drop Subs-Password (SimpleMachines#6506)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertlast authored Feb 8, 2021
1 parent ecd68b9 commit f3619a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 382 deletions.
8 changes: 2 additions & 6 deletions Sources/Subs-Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -872,9 +872,7 @@ function smf_setcookie($name, $value = '', $expire = 0, $path = '', $domain = ''
*/
function hash_password($username, $password, $cost = null)
{
global $sourcedir, $smcFunc, $modSettings;
if (!function_exists('password_hash'))
require_once($sourcedir . '/Subs-Password.php');
global $smcFunc, $modSettings;

$cost = empty($cost) ? (empty($modSettings['bcrypt_hash_cost']) ? 10 : $modSettings['bcrypt_hash_cost']) : $cost;

Expand Down Expand Up @@ -909,9 +907,7 @@ function hash_salt($password, $salt)
*/
function hash_verify_password($username, $password, $hash)
{
global $sourcedir, $smcFunc;
if (!function_exists('password_verify'))
require_once($sourcedir . '/Subs-Password.php');
global $smcFunc;

return password_verify($smcFunc['strtolower']($username) . $password, $hash);
}
Expand Down
376 changes: 0 additions & 376 deletions Sources/Subs-Password.php

This file was deleted.

0 comments on commit f3619a1

Please sign in to comment.