web/user: fix success popup showing after each flow stage
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> closes #2547 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
0bbea79c64
commit
a0e29d42a6
|
@ -75,10 +75,6 @@ export class UserSettingsFlowExecutor extends LitElement implements StageHost {
|
||||||
flowChallengeResponseRequest: payload,
|
flowChallengeResponseRequest: payload,
|
||||||
})
|
})
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
showMessage({
|
|
||||||
level: MessageLevel.success,
|
|
||||||
message: t`Successfully updated details`,
|
|
||||||
});
|
|
||||||
this.challenge = data;
|
this.challenge = data;
|
||||||
if (this.challenge.responseErrors) {
|
if (this.challenge.responseErrors) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -194,6 +190,10 @@ export class UserSettingsFlowExecutor extends LitElement implements StageHost {
|
||||||
console.debug("authentik/user/flows: redirect to '/', restarting flow.");
|
console.debug("authentik/user/flows: redirect to '/', restarting flow.");
|
||||||
this.firstUpdated();
|
this.firstUpdated();
|
||||||
this.globalRefresh();
|
this.globalRefresh();
|
||||||
|
showMessage({
|
||||||
|
level: MessageLevel.success,
|
||||||
|
message: t`Successfully updated details`,
|
||||||
|
});
|
||||||
return html``;
|
return html``;
|
||||||
case ChallengeChoices.Shell:
|
case ChallengeChoices.Shell:
|
||||||
return html`${unsafeHTML((this.challenge as ShellChallenge).body)}`;
|
return html`${unsafeHTML((this.challenge as ShellChallenge).body)}`;
|
||||||
|
|
Reference in a new issue