Fix credentials change check for redirect

This commit is contained in:
Alex P 2023-03-17 16:18:27 +02:00
parent c037a4c03a
commit 7e64f81c19
No known key found for this signature in database
GPG key ID: 54487A734A204D71
2 changed files with 1 additions and 3 deletions

View file

@ -338,7 +338,7 @@ class SettingsListener {
} }
$redirect_url = false; $redirect_url = false;
if ( self::CREDENTIALS_UNCHANGED !== $credentials_change_status ) { if ( $credentials_change_status && self::CREDENTIALS_UNCHANGED !== $credentials_change_status ) {
$redirect_url = $this->get_onboarding_redirect_url(); $redirect_url = $this->get_onboarding_redirect_url();
} }

View file

@ -88,8 +88,6 @@ class SettingsListenerTest extends ModularTestCase
$dcc_status_cache->shouldReceive('has') $dcc_status_cache->shouldReceive('has')
->andReturn(false); ->andReturn(false);
$this->expectException(StubRedirectionException::class);
$testee->listen(); $testee->listen();
} }
} }