Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errorCode in kba field details #6868

Open
wants to merge 1 commit into
base: collab1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion esignet-insurance.properties
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ mosip.esignet.ui.forgot-password.config={'forgot-password': true, 'forgot-passwo
# form-details holds the list of field details like below:
# id -> unique field Id, type -> holds datatype, format -> only supported for date fields, regex -> pattern to validate the input value, maxLength -> number of allowed characters
# Example: mosip.esignet.authenticator.default.auth-factor.kba.field-details={{'id': '${mosip.esignet.authenticator.default.auth-factor.kba.individual-id-field}', 'type':'text', 'format':'', 'maxLength': 50, 'regex': '^\\s*[+-]?(\\d+|\\d*\\.\\d+|\\d+\\.\\d*)([Ee][+-]?\\d*)?\\s*$'},{'id':'fullName', 'type':'text', 'format':'', 'maxLength': 50, 'regex': '^[A-Za-z\\s]{1,}[\\.]{0,1}[A-Za-z\\s]{0,}$'},{'id':'dob', 'type':'date', 'format':'dd/mm/yyyy'}}
mosip.esignet.authenticator.default.auth-factor.kba.field-details={{'id':'policyNumber', 'type':'text', 'format':'', 'maxLength': 50, 'regex': '^\\d+[-|\\d]+\\d+$'},{'id':'fullName', 'type':'text', 'format':'', 'maxLength': 50, 'regex': '[a-zA-Z]+(\\s+[a-zA-Z]+)*'},{"id":"dob", "type":"date"}}
mosip.esignet.authenticator.default.auth-factor.kba.field-details={{'id':'policyNumber', 'type':'text', 'format':'', 'maxLength': 50, 'regex': '^\\d+[-|\\d]+\\d+$', 'errorCode': 'invalid_policy_number'},{'id':'fullName', 'type':'text', 'format':'', 'maxLength': 50, 'regex': '[a-zA-Z]+(\\s+[a-zA-Z]+)*', 'errorCode': 'invalid_full_name'},{"id":"dob", "type":"date"}}
mosip.esignet.authenticator.default.auth-factor.kba.individual-id-field=policyNumber

# username.prefix -> Prefix to be appended to the username, eg: if the username is phone_number then the prefix could be the country code
Expand Down