If we have to generate people salts then make them 64 chars long. Fixes #8647 props sivel.
git-svn-id: https://develop.svn.wordpress.org/trunk@10577 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7fe219e776
commit
ab26eb60bc
|
@ -1226,7 +1226,7 @@ function wp_salt($scheme = 'auth') {
|
||||||
} else {
|
} else {
|
||||||
$salt = get_option('auth_salt');
|
$salt = get_option('auth_salt');
|
||||||
if ( empty($salt) ) {
|
if ( empty($salt) ) {
|
||||||
$salt = wp_generate_password();
|
$salt = wp_generate_password(64);
|
||||||
update_option('auth_salt', $salt);
|
update_option('auth_salt', $salt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1239,7 +1239,7 @@ function wp_salt($scheme = 'auth') {
|
||||||
} else {
|
} else {
|
||||||
$salt = get_option('secure_auth_salt');
|
$salt = get_option('secure_auth_salt');
|
||||||
if ( empty($salt) ) {
|
if ( empty($salt) ) {
|
||||||
$salt = wp_generate_password();
|
$salt = wp_generate_password(64);
|
||||||
update_option('secure_auth_salt', $salt);
|
update_option('secure_auth_salt', $salt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1252,7 +1252,7 @@ function wp_salt($scheme = 'auth') {
|
||||||
} else {
|
} else {
|
||||||
$salt = get_option('logged_in_salt');
|
$salt = get_option('logged_in_salt');
|
||||||
if ( empty($salt) ) {
|
if ( empty($salt) ) {
|
||||||
$salt = wp_generate_password();
|
$salt = wp_generate_password(64);
|
||||||
update_option('logged_in_salt', $salt);
|
update_option('logged_in_salt', $salt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1265,7 +1265,7 @@ function wp_salt($scheme = 'auth') {
|
||||||
} else {
|
} else {
|
||||||
$salt = get_option('nonce_salt');
|
$salt = get_option('nonce_salt');
|
||||||
if ( empty($salt) ) {
|
if ( empty($salt) ) {
|
||||||
$salt = wp_generate_password();
|
$salt = wp_generate_password(64);
|
||||||
update_option('nonce_salt', $salt);
|
update_option('nonce_salt', $salt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue