web/flows: fix challenge type
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
3686cba6b4
commit
b3b8e71caa
|
@ -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);
|
||||
|
|
Reference in New Issue