diff --git a/app/eSignature/views/eg020_phone_authentication.py b/app/eSignature/views/eg020_phone_authentication.py index 28878a3..4704f7b 100644 --- a/app/eSignature/views/eg020_phone_authentication.py +++ b/app/eSignature/views/eg020_phone_authentication.py @@ -32,6 +32,13 @@ def phone_authentication(): # 1. Get required arguments args = Eg020PhoneAuthenticationController.get_args() + if args["envelope_args"]["signer_email"] == DS_CONFIG["signer_email"]: + return render_template( + "error.html", + error_code=400, + error_message=session["manifest"]["SupportingTexts"]["IdenticalEmailsNotAllowedErrorMessage"] + ) + try: # Step 2: Call the worker method for authenticating with phone results = Eg020PhoneAuthenticationController.worker(args) diff --git a/app/eSignature/views/eg022_kba_authentication.py b/app/eSignature/views/eg022_kba_authentication.py index c9887d3..a9d5e02 100644 --- a/app/eSignature/views/eg022_kba_authentication.py +++ b/app/eSignature/views/eg022_kba_authentication.py @@ -31,6 +31,13 @@ def kba_authentication(): # 1. Get required arguments args = Eg022KBAAuthenticationController.get_args() + + if args["envelope_args"]["signer_email"] == DS_CONFIG["signer_email"]: + return render_template( + "error.html", + error_code=400, + error_message=session["manifest"]["SupportingTexts"]["IdenticalEmailsNotAllowedErrorMessage"] + ) try: # Step 2: Call the worker method for kba results = Eg022KBAAuthenticationController.worker(args) diff --git a/app/eSignature/views/eg023_idv_authentication.py b/app/eSignature/views/eg023_idv_authentication.py index 29f534a..b9dfc2a 100644 --- a/app/eSignature/views/eg023_idv_authentication.py +++ b/app/eSignature/views/eg023_idv_authentication.py @@ -31,6 +31,13 @@ def idv_authentication(): # 1. Get required data args = Eg023IDVAuthenticationController.get_args() + + if args["envelope_args"]["signer_email"] == DS_CONFIG["signer_email"]: + return render_template( + "error.html", + error_code=400, + error_message=session["manifest"]["SupportingTexts"]["IdenticalEmailsNotAllowedErrorMessage"] + ) try: # 2: Call the worker method for idv authentication results = Eg023IDVAuthenticationController.worker(args) diff --git a/app/templates/eSignature/eg020_phone_authentication.html b/app/templates/eSignature/eg020_phone_authentication.html index ba5a3e4..4a87551 100644 --- a/app/templates/eSignature/eg020_phone_authentication.html +++ b/app/templates/eSignature/eg020_phone_authentication.html @@ -29,14 +29,13 @@