web/flows: fix challenge type

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-30 14:34:20 +02:00
parent 3686cba6b4
commit b3b8e71caa

View file

@ -172,7 +172,7 @@ export class FlowExecutor extends LitElement implements StageHost {
if (!this.challenge) {
return html``;
}
switch (this.challenge.type) {
switch (this.challenge.type.toUpperCase()) {
case ChallengeTypeEnum.Redirect:
console.debug("authentik/flows: redirecting to url from server", (this.challenge as RedirectChallenge).to);
window.location.assign((this.challenge as RedirectChallenge).to);