From ac9eb24e43fc3040c28504d35858590491c9b37e Mon Sep 17 00:00:00 2001 From: "LincPay Solutions Pvt. Ltd." Date: Tue, 12 May 2026 11:20:34 +0530 Subject: [PATCH] Update fineract-provider/src/main/resources/application.properties --- .../src/main/resources/application.properties | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/fineract-provider/src/main/resources/application.properties b/fineract-provider/src/main/resources/application.properties index 0eaa84e72..42d3b8c4f 100644 --- a/fineract-provider/src/main/resources/application.properties +++ b/fineract-provider/src/main/resources/application.properties @@ -23,7 +23,7 @@ fineract.node-id=${FINERACT_NODE_ID:1} fineract.security.basicauth.enabled=${FINERACT_SECURITY_BASICAUTH_ENABLED:true} fineract.security.oauth2.enabled=${FINERACT_SECURITY_OAUTH_ENABLED:false} -fineract.security.2fa.enabled=${FINERACT_SECURITY_2FA_ENABLED:false} +fineract.security.2fa.enabled=${FINERACT_SECURITY_2FA_ENABLED:true} fineract.security.hsts.enabled=${FINERACT_SECURITY_HSTS_ENABLED:false} #CORS configuration @@ -664,3 +664,24 @@ fineract.openproject.api-token=${FINERACT_OPENPROJECT_API_TOKEN:57dd9f933f113c72 # ── DIP / MNRL Mobile Number Lookup ────────────────────────────────────────── fineract.mobile-lookup.base-url=${FINERACT_MOBILE_LOOKUP_BASE_URL:http://localhost:8080} +# ── Login OTP (2FA) — uses LincPay credentials above ───────────────────────── +fineract.security.otp.lincpay.generate-path=${FINERACT_OTP_LINCPAY_GENERATE_PATH:/mobile/generate-otp} +fineract.security.otp.lincpay.verify-path=${FINERACT_OTP_LINCPAY_VERIFY_PATH:/verify-mobile-otp} +fineract.security.otp.ttl-seconds=${FINERACT_OTP_TTL_SECONDS:300} +fineract.security.otp.max-attempts=${FINERACT_OTP_MAX_ATTEMPTS:5} + +# ── Spring Mail (email OTP, alerts, password reset) ────────────────────────── +# IMPORTANT: the password below is a Gmail App Password (NOT the account password). +# Keep env-var override for prod — set SPRING_MAIL_PASSWORD in production environments. +spring.mail.host=${SPRING_MAIL_HOST:smtp.gmail.com} +spring.mail.port=${SPRING_MAIL_PORT:587} +spring.mail.username=${SPRING_MAIL_USERNAME:inform.notifications@gmail.com} +spring.mail.password=${SPRING_MAIL_PASSWORD:vjvgdqxsivbipefw} +spring.mail.properties.mail.smtp.auth=${SPRING_MAIL_SMTP_AUTH:true} +spring.mail.properties.mail.smtp.starttls.enable=${SPRING_MAIL_STARTTLS:true} +spring.mail.properties.mail.transport.protocol=smtp + +fineract.email.from-address=${FINERACT_EMAIL_FROM_ADDRESS:no-reply@cbsnexora.com} +fineract.email.from-name=${FINERACT_EMAIL_FROM_NAME:CBSnexora} +fineract.email.support-address=${FINERACT_EMAIL_SUPPORT_ADDRESS:support@cbsnexora.com} +