Skip to content

Configurable error message in Deny Stage #5752

@mittler-works

Description

@mittler-works

Is your feature request related to a problem? Please describe.
Yes, similar to #5379, I have a policy that checks if an user already exists. If an user already exists, the execution of the flow is cancelled by means of the Deny Stage. Unfortunately, it is not possible to pass a configurable error message to the Deny Stage. The ak_message function has no effect.

Describe the solution you'd like
I would like to pass an error message to the deny stage to inform the user that an account with a given email address already exist.

Describe alternatives you've considered
I've considered a Prompt Stage to view some text to the user, but I see no way to have a proper control flow between stages.

Additional context
In the code base here there is no error_message passed to stage_invalid().

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions