Titlu H1
5 found - "1860 233 1234
Sign in
Sign In
Business
Personal
Login ID
Password
Mobile Number
OTP Verification
Resend OTP
Do you want to Register for 2FA
Sign In
Forgot Password
Get login ID
Create your Business Account
Mobile Number
OTP Verification
Resend OTP
Sign In
New? Register here for Personal Account.
AUI().use(
'liferay-form',
function(A) {
(function() {
var $ = AUI.$;var _ = AUI._;
Liferay.Form.register(
{
id: '_com_liferay_login_web_portlet_LoginPortlet_loginForm'
, fieldRules: [
{
body: function() {
return AUI.$('#corporate').hasClass('active');
},
custom: false,
errorMessage: '\u0054\u0068\u0065\u0020\u0050\u0061\u0073\u0073\u0077\u006f\u0072\u0064\u0020\u0066\u0069\u0065\u006c\u0064\u0020\u0069\u0073\u0020\u0072\u0065\u0071\u0075\u0069\u0072\u0065\u0064\u002e',
fieldName: '_com_liferay_login_web_portlet_LoginPortlet_password',
validatorName: 'required'
}
,
{
body: function() {
return AUI.$('#corporate').hasClass('active');
},
custom: false,
errorMessage: '\u0054\u0068\u0065\u0020\u004c\u006f\u0067\u0069\u006e\u0020\u0066\u0069\u0065\u006c\u0064\u0020\u0069\u0073\u0020\u0072\u0065\u0071\u0075\u0069\u0072\u0065\u0064\u002e',
fieldName: '_com_liferay_login_web_portlet_LoginPortlet_login',
validatorName: 'required'
}
]
, onSubmit: function(event) {
event.preventDefault();
}
, validateOnBlur: false
}
);
var onDestroyPortlet = function(event) {
if (event.portletId === 'com_liferay_login_web_portlet_LoginPortlet') {
delete Liferay.Form._INSTANCES['_com_liferay_login_web_portlet_LoginPortlet_loginForm'];
}
};
Liferay.on('destroyPortlet', onDestroyPortlet);
A.all('#_com_liferay_login_web_portlet_LoginPortlet_loginForm .input-container').removeAttribute('disabled');
Liferay.fire(
'_com_liferay_login_web_portlet_LoginPortlet_formReady',
{
formName: '_com_liferay_login_web_portlet_LoginPortlet_loginForm'
}
);
})();
});
(function() {var $ = AUI.$;var _ = AUI._;
var form = document.getElementById('_com_liferay_login_web_portlet_LoginPortlet_loginForm');
if (form) {
form.addEventListener(
'submit',
function(event) {
submitForm(form);
}
);
var password = form.querySelector('#_com_liferay_login_web_portlet_LoginPortlet_password');
if (password) {
password.addEventListener(
'keypress',
function(event) {
Liferay.Util.showCapsLock(event, '_com_liferay_login_web_portlet_LoginPortlet_passwordCapsLockSpan');
}
);
}
}
})();
/* .login-form-tabs {
border: 0;
color: #000000;
font-weight: 600;
}
.login-form-tabs>li>a.active{
border:0 !important;
border-bottom: 2px solid #138241 !important;
}
.text-green{
color: #138241;
} */
.login-form-tabs {
border: 0;
font-weight: 600;
}
.login-form-tabs .nav-link {
font-weight: 600;
}
.login-form-tabs .nav-link.active {
border: 0 !important;
border-bottom: 2px solid #138241 !important;
font-weight: 600;
}
.text-green {
color: #138241;
}
var resendOTP = 'https://bluedart.com/web/guest/home?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_resource_id=resendOTP&p_p_cacheability=cacheLevelPage&_com_liferay_login_web_portlet_LoginPortlet_action=resendOTP';
var checkTwoFA = 'https://bluedart.com/web/guest/home?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_resource_id=checkTwoFA&p_p_cacheability=cacheLevelPage&_com_liferay_login_web_portlet_LoginPortlet_action=checkTwoFA';
var validateUserAndMobileNo = 'https://bluedart.com/web/guest/home?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_resource_id=validateUserAndMobileNo&p_p_cacheability=cacheLevelPage&_com_liferay_login_web_portlet_LoginPortlet_action=validateUserAndMobileNo';
var verifyCorpOTP = 'https://bluedart.com/web/guest/home?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_resource_id=verifyCorpOTP&p_p_cacheability=cacheLevelPage&_com_liferay_login_web_portlet_LoginPortlet_action=verifyCorpOTP';
var retailuserportletNamespace = '_com_liferay_login_web_portlet_LoginPortlet_';
function validateLoginForm(){
$('#retailuser_contactNumberError').html('');
var contactNumber=$("#"+retailuserportletNamespace+"mobileNo").val();
var otp=$("#"+retailuserportletNamespace+"OTP").val();
// ***** GET THE STORED MOBILE NUMBER *****
var storedMobile = sessionStorage.getItem('otpMobile');
var otpTime = sessionStorage.getItem('otpTime');
console.log("========== LOGIN VALIDATION VERIFICATION ==========");
console.log("1. Current mobile from form: '" + contactNumber + "'");
console.log("2. Stored mobile from sessionStorage: '" + storedMobile + "'");
var bool = true;
var contactNumber_num = parseFloat(contactNumber);
if(contactNumber.trim()=='' || contactNumber.trim()==null || contactNumber.length=="undefined"){
$('#retailuser_contactNumberError').text("This field is required.").show();
bool =false
}
if(otp.trim()=='' || otp.trim()==null || otp.length=="undefined"){
$('#retailuser_otpError').text("This field is required.").show();
bool =false;
}
// Check if the current mobile number matches what was stored when OTP was sent
if(storedMobile && storedMobile !== contactNumber) {
$('#retailuser_contactNumberError').text("Security Error: Mobile number mismatch").show();
bool = false;
}
if(bool==false){
return false;
}else{
return true;
}
}
function validateCorpLoginForm(){
$('#corpuser_contactNumberError').html('');
var contactNumber=$("#"+retailuserportletNamespace+"corpMobileNo").val();
var otp=$("#"+retailuserportletNamespace+"corpOTP").val();
var bool = true;
var contactNumber_num = parseFloat(contactNumber);
var storedCorpMobile = sessionStorage.getItem('corpOtpMobile');
if(contactNumber.trim()=='' || contactNumber.trim()==null || contactNumber.length=="undefined"){
$('#corpuser_contactNumberError').text("This field is required.").show();
bool =false
}
if(otp.trim()=='' || otp.trim()==null || otp.length=="undefined"){
$('#corpuser_otpError').text("This field is required.").show();
bool =false;
}
if(storedCorpMobile && storedCorpMobile !== contactNumber) {
$('#corpuser_contactNumberError').text("Security Error: Mobile number mismatch").show();
bool = false;
}
if(bool==false){
return false;
}else{
return true;
}
}
var removeOTPTimer=false;
$(document).ready(function() {
$("#ResendotpIdBtn").css('pointer-events', 'none');
$("#ResendotpIdBtn").css('opacity', '0.6');
$("#corpResendotpIdBtn").css('pointer-events', 'none');
$("#corpResendotpIdBtn").css('opacity', '0.6');
var retailUserStatus=null;
var mobileNumber=null;
if(retailUserStatus== true){
$("#business").removeClass("active");
$("#personal").addClass("active");
$("#corporate").removeClass("active");
$("#retail").addClass("active show");
$("#"+retailuserportletNamespace+"mobileNo").val(mobileNumber);
$("#"+retailuserportletNamespace+"hidden_mobileNo").val(mobileNumber);
}
else{
$("#business").addClass("active");
$("#personal").removeClass("active");
$("#corporate").addClass("active show");
$("#retail").removeClass("active");
}
});
$('#business').click(function() {
$("#"+retailuserportletNamespace+"mobileNo").val("");
$("#"+retailuserportletNamespace+"hidden_mobileNo").val("");
$("#"+retailuserportletNamespace+"OTP").val("");
$("#"+retailuserportletNamespace+"mobileNo").attr("disabled", false);
removeOTPTimer=true;
$(".login-container").find(".required").empty();
$(".input-text-wrapper").removeClass("has-error");
$("#"+retailuserportletNamespace+"corlogin").prop("readonly", false);
$("#"+retailuserportletNamespace+"corpassword").prop("readonly", false);
$("#"+retailuserportletNamespace+"corpMobileNo").attr("disabled", false);
$('#corpuser_contactNumberError').text('').show();
$('#corpuser_otpError').text('').show();
});
$('#personal').click(function() {
$("#"+retailuserportletNamespace+"corlogin").val("");
$("#"+retailuserportletNamespace+"corpassword").val("");
$('#retailuser_contactNumberError').text('').show();
$('#retailuser_otpError').text('').show();
$(".login-container").find(".required").empty();
$(".input-text-wrapper").removeClass("has-error");
$('#twoAuth').hide();
$("#"+retailuserportletNamespace+"is2FAenabled").val("");
$("#"+retailuserportletNamespace+"corpMobileNo").val("");
$("#"+retailuserportletNamespace+"hidden_corpmobileNo").val("");
$("#"+retailuserportletNamespace+"corpOTP").val("");
removeOTPTimer=true;
});
$("#"+retailuserportletNamespace+"mobileNo").blur(function(){
checkNumber();
})
function checkNumber(){
$('#retailuser_contactNumberError').html('');
var contactNumber=$("#"+retailuserportletNamespace+"mobileNo").val();
var contactNumber_num = parseFloat(contactNumber);
var hidden_mob=$('#'+retailuserportletNamespace+'hidden_mobileNo').val(contactNumber_num);
if(contactNumber.trim()=='' || contactNumber.trim()==null || contactNumber.length10 && contactNumber.length < 12) || isNaN(contactNumber.trim()) || contactNumber_num ==0) {
$("#retailotpIdBtn").css('pointer-events', 'none');
$("#retailotpIdBtn").css('opacity', '0.6');
$('#retailuser_contactNumberError').text("Enter your registered Mobile Number. If New User, then Register Yourself").show();
}else{
$.ajax({
url : 'https://bluedart.com/web/guest/home?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_resource_id=verifyMobileNumber&p_p_cacheability=cacheLevelPage&_com_liferay_login_web_portlet_LoginPortlet_action=verifyMobileNumber',
type: 'POST',
data : {
"_com_liferay_login_web_portlet_LoginPortlet_customerMobileNumber":$("#"+retailuserportletNamespace+"hidden_mobileNo").val()
},
dataType: 'JSON',
success: function (response) {
if(response && response.errorFlag){
$('#retailuser_contactNumberError').text(response.errorMsg).show();
}
else {
if(response.mobileotpLength == 1) {
$('#retailuser_contactNumberError').text(errorMsg).show();
}
else {
// Store the mobile number in sessionStorage when OTP is successfully sent
sessionStorage.setItem('otpMobile', $("#"+retailuserportletNamespace+"hidden_mobileNo").val());
sessionStorage.setItem('otpTime', new Date().getTime());
/*console.log("========== OTP STORAGE VERIFICATION ==========");
console.log("1. Mobile number stored in sessionStorage: '" + $("#"+retailuserportletNamespace+"hidden_mobileNo").val() + "'");
console.log("2. Storage time: " + new Date().toLocaleTimeString());
console.log("3. Checking sessionStorage directly:");
console.log(" - otpMobile: " + sessionStorage.getItem('otpMobile'));
console.log(" - otpTime: " + sessionStorage.getItem('otpTime'));
console.log("==============================================");*/
$("#"+retailuserportletNamespace+"mobileNo").attr("disabled", "true");
$('#sentmsg').text("The OTP has been sent to your Mobile number.").show();
$('#sentmsg').fadeIn(500).css('display','block').delay(5000).fadeOut(250);
clearInterval(restartOTPTimer);
otpTimer();
$("#ResendotpIdBtn").css('pointer-events', 'none');
$("#ResendotpIdBtn").css('opacity', '0.6');
}
}
},
error: function (response) {
$('#retailuser_contactNumberError').text(response.errorMsg).show();
return false;
}
});
}
var resentCount=0;
if(Liferay.Session._getAttr('resentCount')){
resentCount=Liferay.Session._getAttr('resentCount');
}
resentCount=resentCount+1;
Liferay.Session._setAttr('resentCount',resentCount);
}
/* -----------------Timer for resent------------------------- */
var isTimerRunning = false;
var restartOTPTimer;
function otpTimer(){
removeOTPTimer=false;
let timerOn = true;
isTimerRunning = true;
function timer(remaining) {
var m = Math.floor(remaining / 60);
var s = remaining % 60;
if(removeOTPTimer){
remaining='0';
}
m = m < 10 ? '0' + m : m;
s = s < 10 ? '0' + s : s;
document.getElementById('timer').innerHTML = m + ':' + s;
remaining -= 1;
if(remaining >= 0 && timerOn) {
restartOTPTimer =setTimeout(function() {
timer(remaining);
}, 1000);
return;
}else{
document.getElementById('timer').innerHTML = '';
}
isTimerRunning = false;
if(!timerOn) {
return;
}
if(!removeOTPTimer){
$("#ResendotpIdBtn").css('pointer-events', 'auto');
$("#ResendotpIdBtn").css('opacity', '1');
}
}
timer(120);
}
/* -----------------To resend OTP------------------------- */
function callResendLink() {
var resentCount=0;
var retailuserportletNamespace = '_com_liferay_login_web_portlet_LoginPortlet_';
if(Liferay.Session._getAttr('resentCount')){
resentCount=Liferay.Session._getAttr('resentCount');
}
if(resentCount > 0 ) {
var contactNumber=$("#"+retailuserportletNamespace+"hidden_mobileNo").val();
var resendOtpError=false;
var serviceDown = false;
var errorMsg;
if(isTimerRunning){
return;
}
if(resentCount > 2) {
reload = false;
$('#resent').text("You have exceeded the maximum number of attempts. In case of any query please contact us at 1860 233 1234.").show();
$('#resent').fadeIn(500).css('display','block').delay(5000).fadeOut(250);
}else {
$.ajax({
url :resendOTP,
type: 'POST',
data : {
[ retailuserportletNamespace + "contactNumber"] : contactNumber
},
dataType: 'JSON',
success : function(data) {
$.each(data, function(key, value) {
mobileServiceDown = value.mobileErrorFlag;
mobileErrorMsg=value.mobileErrorMsg;
mobileotpSize=value.mobileotpLength;
errorFlag=value.errorFlag;
errorMsg=value.errorMsg;
})
if(errorFlag==true){
$('#retailuser_otpError').text(errorMsg).show();
}else {
if(mobileotpSize == 1) {
$('#retailuser_otpError').text(errorMsg).show();
}else {
$('#resent').text("The OTP has been resent to your Mobile number.").show();
$('#resent').fadeIn(500).css('display','block').delay(5000).fadeOut(250);
clearInterval(restartOTPTimer);
otpTimer();
$("#ResendotpIdBtn").css('pointer-events', 'none');
$("#ResendotpIdBtn").css('opacity', '0.6');
$('#retailuser_otpError').text("").show();
}
}
resentCount=resentCount+1;
Liferay.Session._setAttr('resentCount',resentCount);
}
});
}
}
}
var isCorpTimerRunning = false;
var restartCorpOTPTimer;
function otpCorpTimer(){
removeOTPTimer=false;
let timerOn = true;
isCorpTimerRunning = true;
function timer(remaining) {
var m = Math.floor(remaining / 60);
var s = remaining % 60;
if(removeOTPTimer){
remaining='0';
}
m = m < 10 ? '0' + m : m;
s = s < 10 ? '0' + s : s;
document.getElementById('corptimer').innerHTML = m + ':' + s;
remaining -= 1;
if(remaining >= 0 && timerOn) {
restartCorpOTPTimer =setTimeout(function() {
timer(remaining);
}, 1000);
return;
}else{
document.getElementById('corptimer').innerHTML = '';
}
isCorpTimerRunning = false;
if(!timerOn) {
return;
}
if(!removeOTPTimer){
$("#corpResendotpIdBtn").css('pointer-events', 'auto');
$("#corpResendotpIdBtn").css('opacity', '1');
}
}
timer(120);
}
/* -----------------Corp resend OTP------------------------- */
function callCorpResendLink() {
var resentCorpCount=0;
var retailuserportletNamespace = '_com_liferay_login_web_portlet_LoginPortlet_';
if(Liferay.Session._getAttr('resentCorpCount')){
resentCorpCount=Liferay.Session._getAttr('resentCorpCount');
}
if(resentCorpCount > 0 ) {
var contactNumber=$("#"+retailuserportletNamespace+"hidden_corpmobileNo").val();
var resendOtpError=false;
var serviceDown = false;
var errorMsg;
if(isCorpTimerRunning){
return;
}
if(resentCorpCount > 2) {
reload = false;
$('#corpresent').text("You have exceeded the maximum number of attempts. In case of any query please contact us at 1860 233 1234.").show();
$('#corpresent').fadeIn(500).css('display','block').delay(5000).fadeOut(250);
}else {
$.ajax({
url :resendOTP,
type: 'POST',
data : {
[ retailuserportletNamespace + "contactNumber"] : contactNumber,
[ retailuserportletNamespace + "corScreenName"] : $("#"+retailuserportletNamespace+"corlogin").val()
},
dataType: 'JSON',
success : function(data) {
$.each(data, function(key, value) {
mobileServiceDown = value.mobileErrorFlag;
mobileErrorMsg=value.mobileErrorMsg;
mobileotpSize=value.mobileotpLength;
errorFlag=value.errorFlag;
errorMsg=value.errorMsg;
})
if(errorFlag==true){
$('#corpresent').text(errorMsg).show();
}else {
if(mobileotpSize == 1) {
$('#corpresent').text(errorMsg).show();
}else {
$('#corpresent').text("The OTP has been resent to your Mobile number.").show();
$('#corpresent').fadeIn(500).css('display','block').delay(5000).fadeOut(250);
clearInterval(restartCorpOTPTimer);
otpCorpTimer();
$("#corpResendotpIdBtn").css('pointer-events', 'none');
$("#corpResendotpIdBtn").css('opacity', '0.6');
$('#corpuser_otpError').text("").show();
}
}
resentCorpCount=resentCorpCount+1;
Liferay.Session._setAttr('resentCorpCount',resentCorpCount);
}
});
}
}
}
$("#"+retailuserportletNamespace+"corlogin").on('input',function(){
console.log("check2FA called");
var loginId = $("#"+retailuserportletNamespace+"corlogin").val();
var length = loginId.length;
if(length >= 8 && length = 35 && e.keyCode 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault();
}
var length = jQuery(this).val().length;
if(length > 10) {
return false;
}
});
$("#"+retailuserportletNamespace+"corpmobileNo").bind("paste",function(e) {
e.preventDefault();
});
});
jQuery(document).ready(function () {
jQuery("#"+retailuserportletNamespace+"corpOTP").keypress(function (e) {
var length = jQuery(this).val().length;
if(length > 3) {
return false;
} else if(e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) {
return false;
} else if((length == 0) && (e.which == 48)) {
return false;
}
});
});
jQuery(document).ready(function () {
jQuery("#"+retailuserportletNamespace+"corpMobileNo").keypress(function (e) {
if (e.keyCode === 13) {
if(validateCorpLoginForm()){
$("#"+retailuserportletNamespace+"submit" ).trigger( "click" );
}
e.preventDefault();
}
});
});
jQuery(document).ready(function () {
jQuery("#"+retailuserportletNamespace+"corpOTP").keypress(function (e) {
if (e.keyCode === 13) {
if(validateCorpLoginForm()){
$("#"+retailuserportletNamespace+"submit" ).trigger( "click" );
}
}
});
});"
Folosiți un singur titlu H1 pe pagină. Eliminați etichetele H1 suplimentare.