Skip to content

Commit

Permalink
Ensure the # never makes it into the .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
valendesigns committed Feb 27, 2019
1 parent f34c2de commit 1cb4144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/authentication/class-keypair-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function user_profile_fields( $user ) {
// @codingStandardsIgnoreStart - Skipping VIP sniffs.
$api_secret = get_user_meta( $user->ID, 'tide_api_user_secret', true );
if ( empty( $api_secret ) ) {
$api_secret = wp_generate_password( 32 );
$api_secret = str_replace( '#', '$', wp_generate_password( 32 ) );
update_user_meta( $user->ID, 'tide_api_user_secret', $api_secret );
}
// @codingStandardsIgnoreEnd
Expand Down

0 comments on commit 1cb4144

Please sign in to comment.