Skip to content

Commit befcf31

Browse files
removed hashed api key from encryptor
1 parent ffa7ab8 commit befcf31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/api/class-utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static function update_chatgpt_settings( \WP_REST_Request $request ): arr
7474
}
7575

7676
$encryptor = new Encryption();
77-
$encrypted_api_key = $encryptor->encrypt( $body['api_key'] ?? $current['api_key'] ?? '' );
77+
$encrypted_api_key = $encryptor->encrypt( $body['api_key'] ?? '' );
7878

7979
$update = update_option(
8080
'gutenberg_native_ai',

0 commit comments

Comments
 (0)