Skip to content

Commit

Permalink
Notification fix if resident email not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
MuralitharanK committed Oct 10, 2024
1 parent 5ee68f2 commit 29dd77a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ public class PrintServiceImpl implements PrintService {
private boolean isPasswordProtected;
@Value("${mosip.send.uin.default-emailIds}")
private String defaultEmailIds;
@Value("${mosip.idschema.attribute.email:email}")
private String emailAttribute;
@Value("${mosip.print.service.mpesa.enabled:false}")
private Boolean isMpesaEnabled;
@Value("${mosip.print.service.mpesa.account.creation.url}")
Expand Down Expand Up @@ -315,7 +317,9 @@ private Map<String, byte[]> getDocuments(String credential, String credentialTyp
credentialSubject = getCrdentialSubject(credential);
org.json.JSONObject credentialSubjectJson = new org.json.JSONObject(credentialSubject);
org.json.JSONObject decryptedJson = decryptAttribute(credentialSubjectJson, encryptionPin, credential);
residentEmailId = decryptedJson.getString("email");
if (decryptedJson.has(emailAttribute)) {
residentEmailId = decryptedJson.getString(emailAttribute);
}
if (!StringUtils.hasText(registrationId)) {
printLogger.info(decryptedJson.get("id").toString());
//registrationId = getRid(decryptedJson.get("id"));
Expand Down

0 comments on commit 29dd77a

Please sign in to comment.