Provide fallback salt to accommodate custom schemes. Props tellyworth. fixes #8212

git-svn-id: http://svn.automattic.com/wordpress/trunk@9680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-14 16:35:14 +00:00
parent f2dea2189e
commit ce1cc49825
1 changed files with 3 additions and 0 deletions

View File

@ -1270,6 +1270,9 @@ function wp_salt($scheme = 'auth') {
update_option('logged_in_salt', $salt);
}
}
} else {
// ensure each auth scheme has its own unique salt
$salt = hash_hmac('md5', $scheme, $secret_key);
}
return apply_filters('salt', $secret_key . $salt, $scheme);