File tree Expand file tree Collapse file tree 6 files changed +27
-9
lines changed Expand file tree Collapse file tree 6 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,13 @@ def phone_authentication():
32
32
33
33
# 1. Get required arguments
34
34
args = Eg020PhoneAuthenticationController .get_args ()
35
+ if args ["envelope_args" ]["signer_email" ] == DS_CONFIG ["signer_email" ]:
36
+ return render_template (
37
+ "error.html" ,
38
+ error_code = 400 ,
39
+ error_message = session ["manifest" ]["SupportingTexts" ]["IdenticalEmailsNotAllowedErrorMessage" ]
40
+ )
41
+
35
42
try :
36
43
# Step 2: Call the worker method for authenticating with phone
37
44
results = Eg020PhoneAuthenticationController .worker (args )
Original file line number Diff line number Diff line change @@ -31,6 +31,13 @@ def kba_authentication():
31
31
32
32
# 1. Get required arguments
33
33
args = Eg022KBAAuthenticationController .get_args ()
34
+
35
+ if args ["envelope_args" ]["signer_email" ] == DS_CONFIG ["signer_email" ]:
36
+ return render_template (
37
+ "error.html" ,
38
+ error_code = 400 ,
39
+ error_message = session ["manifest" ]["SupportingTexts" ]["IdenticalEmailsNotAllowedErrorMessage" ]
40
+ )
34
41
try :
35
42
# Step 2: Call the worker method for kba
36
43
results = Eg022KBAAuthenticationController .worker (args )
Original file line number Diff line number Diff line change @@ -31,6 +31,13 @@ def idv_authentication():
31
31
32
32
# 1. Get required data
33
33
args = Eg023IDVAuthenticationController .get_args ()
34
+
35
+ if args ["envelope_args" ]["signer_email" ] == DS_CONFIG ["signer_email" ]:
36
+ return render_template (
37
+ "error.html" ,
38
+ error_code = 400 ,
39
+ error_message = session ["manifest" ]["SupportingTexts" ]["IdenticalEmailsNotAllowedErrorMessage" ]
40
+ )
34
41
try :
35
42
# 2: Call the worker method for idv authentication
36
43
results = Eg023IDVAuthenticationController .worker (args )
Original file line number Diff line number Diff line change 29
29
< div class ="form-group ">
30
30
< label for ="signer_email "> {{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputName'] }}</ label >
31
31
< input type ="email " class ="form-control " id ="signer_email " name ="signer_email "
32
- aria-describedby ="emailHelp " placeholder ="{{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputPlaceholder'] }} " required
33
- value ="{{ signer_email }} ">
32
+ aria-describedby ="emailHelp " placeholder ="{{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputPlaceholder'] }} " required >
34
33
< small id ="emailHelp " class ="form-text text-muted "> {{ session['manifest']['SupportingTexts']['HelpingTexts']['EmailWontBeShared'] | safe}}</ small >
35
34
</ div >
36
35
< div class ="form-group ">
37
36
< label for ="signer_name "> {{ example['Forms'][recipient_form_index]['Inputs'][signer_name_index]['InputName'] }}</ label >
38
37
< input type ="text " class ="form-control " id ="signer_name " placeholder ="{{ example['Forms'][recipient_form_index]['Inputs'][signer_name_index]['InputPlaceholder'] }} " name ="signer_name "
39
- value =" {{ signer_name }} " required >
38
+ required >
40
39
</ div >
41
40
< input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} "/>
42
41
{% include 'submit_button.html' %}
Original file line number Diff line number Diff line change 14
14
< div class ="form-group ">
15
15
< label for ="signer_email "> {{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputName'] }}</ label >
16
16
< input type ="email " class ="form-control " id ="signer_email " name ="signer_email "
17
- aria-describedby ="emailHelp " placeholder ="{{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputPlaceholder'] }} " required
18
- value ="{{ signer_email }} ">
17
+ aria-describedby ="emailHelp " placeholder ="{{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputPlaceholder'] }} " required >
19
18
< small id ="emailHelp " class ="form-text text-muted "> {{ session['manifest']['SupportingTexts']['HelpingTexts']['EmailWontBeShared'] | safe}}</ small >
20
19
</ div >
21
20
< div class ="form-group ">
22
21
< label for ="signer_name "> {{ example['Forms'][recipient_form_index]['Inputs'][signer_name_index]['InputName'] }}</ label >
23
22
< input type ="text " class ="form-control " id ="signer_name " placeholder ="{{ example['Forms'][recipient_form_index]['Inputs'][signer_name_index]['InputPlaceholder'] }} " name ="signer_name "
24
- value =" {{ signer_name }} " required >
23
+ required >
25
24
</ div >
26
25
< input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} "/>
27
26
{% include 'submit_button.html' %}
Original file line number Diff line number Diff line change 16
16
< div class ="form-group ">
17
17
< label for ="signer_email "> {{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputName'] }}</ label >
18
18
< input type ="email " class ="form-control " id ="signer_email " name ="signer_email "
19
- aria-describedby ="emailHelp " placeholder ="{{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputPlaceholder'] }} " required
20
- value ="{{ signer_email }} ">
19
+ aria-describedby ="emailHelp " placeholder ="{{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputPlaceholder'] }} " required >
21
20
< small id ="emailHelp " class ="form-text text-muted "> {{ session['manifest']['SupportingTexts']['HelpingTexts']['EmailWontBeShared'] | safe}}</ small >
22
21
</ div >
23
22
< div class ="form-group ">
24
23
< label for ="signer_name "> {{ example['Forms'][recipient_form_index]['Inputs'][signer_name_index]['InputName'] }}</ label >
25
24
< input type ="text " class ="form-control " id ="signer_name " placeholder ="{{ example['Forms'][recipient_form_index]['Inputs'][signer_name_index]['InputPlaceholder'] }} " name ="signer_name "
26
- value =" {{ signer_name }} " required >
25
+ required >
27
26
</ div >
28
27
< input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} "/>
29
28
{% include 'submit_button.html' %}
You can’t perform that action at this time.
0 commit comments