If we have to generate people salts then make them 64 chars long. Fixes #8647 props sivel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e5003996e3
commit
f1098f3644
|
@ -1226,7 +1226,7 @@ function wp_salt($scheme = 'auth') {
|
|||
} else {
|
||||
$salt = get_option('auth_salt');
|
||||
if ( empty($salt) ) {
|
||||
$salt = wp_generate_password();
|
||||
$salt = wp_generate_password(64);
|
||||
update_option('auth_salt', $salt);
|
||||
}
|
||||
}
|
||||
|
@ -1239,7 +1239,7 @@ function wp_salt($scheme = 'auth') {
|
|||
} else {
|
||||
$salt = get_option('secure_auth_salt');
|
||||
if ( empty($salt) ) {
|
||||
$salt = wp_generate_password();
|
||||
$salt = wp_generate_password(64);
|
||||
update_option('secure_auth_salt', $salt);
|
||||
}
|
||||
}
|
||||
|
@ -1252,7 +1252,7 @@ function wp_salt($scheme = 'auth') {
|
|||
} else {
|
||||
$salt = get_option('logged_in_salt');
|
||||
if ( empty($salt) ) {
|
||||
$salt = wp_generate_password();
|
||||
$salt = wp_generate_password(64);
|
||||
update_option('logged_in_salt', $salt);
|
||||
}
|
||||
}
|
||||
|
@ -1265,7 +1265,7 @@ function wp_salt($scheme = 'auth') {
|
|||
} else {
|
||||
$salt = get_option('nonce_salt');
|
||||
if ( empty($salt) ) {
|
||||
$salt = wp_generate_password();
|
||||
$salt = wp_generate_password(64);
|
||||
update_option('nonce_salt', $salt);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue