Skip to content

Commit f8d0725

Browse files
committed
now the wizard is also validated, if an invalid set of creds are used, it will fail and loop around
1 parent 75764a3 commit f8d0725

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Dashboard/Setup_Wizard.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ private function handle_step_1(): void {
246246
update_option( Settings::ARCHIVE_ORG_ACCESS_KEY, $access_key );
247247
update_option( Settings::ARCHIVE_ORG_SECRET_KEY, $secret_key );
248248

249+
// Mark the keys as valid.
250+
Settings::update_archive_api_credentials_validity( true );
251+
249252
// Update the step.
250253
$next = sanitize_text_field( wp_unslash( $_POST['wlf-next-step'] ) );
251254
update_option( self::OPTION_NAME, $next );

0 commit comments

Comments
 (0)