Skip to content

Commit d7c88e4

Browse files
author
erika
committed
Fixed wp-config.php unique key generation
1 parent a0335be commit d7c88e4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

wordpress-lamp_ubuntu1804/files/wp-config.php.j2

+8-8
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ define('FS_METHOD', 'direct');
4949
*
5050
* @since 2.6.0
5151
*/
52-
define( 'AUTH_KEY', '{{ ansible_date_time.iso8601_micro | hash('sha256') }}' );
53-
define( 'SECURE_AUTH_KEY', '{{ ansible_date_time.iso8601_micro | hash('sha256') }}' );
54-
define( 'LOGGED_IN_KEY', '{{ ansible_date_time.iso8601_micro | hash('sha256') }}' );
55-
define( 'NONCE_KEY', '{{ ansible_date_time.iso8601_micro | hash('sha256') }}' );
56-
define( 'AUTH_SALT', '{{ ansible_date_time.iso8601_micro | hash('sha256') }}' );
57-
define( 'SECURE_AUTH_SALT', '{{ ansible_date_time.iso8601_micro | hash('sha256') }}' );
58-
define( 'LOGGED_IN_SALT', '{{ ansible_date_time.iso8601_micro | hash('sha256') }}' );
59-
define( 'NONCE_SALT', '{{ ansible_date_time.iso8601_micro | hash('sha256') }}' );
52+
define( 'AUTH_KEY', '{{ lookup('password', '/dev/null chars=ascii_letters length=64') }}' );
53+
define( 'SECURE_AUTH_KEY', '{{ lookup('password', '/dev/null chars=ascii_letters length=64') }}' );
54+
define( 'LOGGED_IN_KEY', '{{ lookup('password', '/dev/null chars=ascii_letters length=64') }}' );
55+
define( 'NONCE_KEY', '{{ lookup('password', '/dev/null chars=ascii_letters length=64') }}' );
56+
define( 'AUTH_SALT', '{{ lookup('password', '/dev/null chars=ascii_letters length=64') }}' );
57+
define( 'SECURE_AUTH_SALT', '{{ lookup('password', '/dev/null chars=ascii_letters length=64') }}' );
58+
define( 'LOGGED_IN_SALT', '{{ lookup('password', '/dev/null chars=ascii_letters length=64') }}' );
59+
define( 'NONCE_SALT', '{{ lookup('password', '/dev/null chars=ascii_letters length=64') }}' );
6060

6161
/**#@-*/
6262

0 commit comments

Comments
 (0)