stages/prompt: integrate password comparison when multiple password fields are given

This commit is contained in:
Jens Langhammer
2020-09-20 21:27:34 +02:00
parent 50c75087b8
commit 5007a6befe
9 changed files with 101 additions and 65 deletions

View File

@ -105,15 +105,10 @@ class TestFlowTransfer(TransactionTestCase):
order=2,
type=FieldTypes.PASSWORD,
)
# Password checking policy
password_policy = ExpressionPolicy.objects.create(
name=generate_client_id(), expression="return True",
)
# Stages
first_stage = PromptStage.objects.create(name=generate_client_id())
first_stage.fields.set([username_prompt, password, password_repeat])
first_stage.validation_policies.set([password_policy])
first_stage.save()
flow = Flow.objects.create(