Tightened the language.

This commit is contained in:
Ken Sternberg
2024-07-16 13:56:53 -07:00
parent a8531d498a
commit 142a985914

View File

@ -45,10 +45,7 @@ export class RedirectStage extends BaseStage<RedirectChallenge, FlowChallengeRes
if (this.promptUser) { if (this.promptUser) {
return; return;
} }
console.debug( console.debug("authentik/stages/redirect: redirecting to url from server", this.challenge.to);
"authentik/stages/redirect: redirecting to url from server",
this.challenge.to,
);
window.location.assign(this.challenge.to); window.location.assign(this.challenge.to);
this.startedRedirect = true; this.startedRedirect = true;
} }
@ -60,10 +57,7 @@ export class RedirectStage extends BaseStage<RedirectChallenge, FlowChallengeRes
// As this wouldn't really be a redirect, show a message that the page can be closed // As this wouldn't really be a redirect, show a message that the page can be closed
// and try to close it ourselves // and try to close it ourselves
if (!url.protocol.startsWith("http")) { if (!url.protocol.startsWith("http")) {
return html`<ak-empty-state return html`<ak-empty-state icon="fas fa-check" header=${msg("You may close this page now.")}>
icon="fas fa-check"
header=${msg("You may close this page now.")}
>
</ak-empty-state>`; </ak-empty-state>`;
} }
return html`<ak-empty-state ?loading=${true} header=${msg("Loading")}> </ak-empty-state>`; return html`<ak-empty-state ?loading=${true} header=${msg("Loading")}> </ak-empty-state>`;
@ -79,7 +73,7 @@ export class RedirectStage extends BaseStage<RedirectChallenge, FlowChallengeRes
<div class="pf-c-login__main-body"> <div class="pf-c-login__main-body">
<form class="pf-c-form"> <form class="pf-c-form">
<div class="pf-c-form__group"> <div class="pf-c-form__group">
<p>${msg("You're about to be redirected to the following URL.")}</p> <p>${msg("You will now be redirected to the following URL.")}</p>
<code>${this.getURL()}</code> <code>${this.getURL()}</code>
</div> </div>
<div class="pf-c-form__group pf-m-action"> <div class="pf-c-form__group pf-m-action">