fix: change captcha font family

This commit is contained in:
2025-11-05 11:15:37 +05:30
parent 8801d56d3d
commit 960b052d55
12 changed files with 34 additions and 34 deletions

View File

@@ -152,7 +152,7 @@ export default function ChangePassword() {
});
return;
}
setOtpValidated(true);
setStep("final");
notifications.show({
@@ -175,7 +175,7 @@ export default function ChangePassword() {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Login-Type": "IB",
"X-Login-Type": "IB",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({
@@ -291,7 +291,7 @@ export default function ChangePassword() {
border: "1px solid #d1d5db",
userSelect: "none",
textDecoration: "line-through",
fontFamily: "cursive",
fontFamily: "Verdana",
}}
>
{captcha}

View File

@@ -183,7 +183,7 @@ export default function ChangePassword() {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Login-Type": "IB",
"X-Login-Type": "IB",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({
@@ -298,7 +298,7 @@ export default function ChangePassword() {
border: "1px solid #d1d5db",
userSelect: "none",
textDecoration: "line-through",
fontFamily: "cursive",
fontFamily: "Verdana",
}}
>
{captcha}

View File

@@ -282,7 +282,7 @@ export default function SetTransactionLimit() {
border: "1px solid #d1d5db",
userSelect: "none",
textDecoration: "line-through",
fontFamily: "cursive",
fontFamily: "Verdana",
}}
>
{captcha}

View File

@@ -190,7 +190,7 @@ export default function ChangePassword() {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Login-Type": "IB",
"X-Login-Type": "IB",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({
@@ -296,7 +296,7 @@ export default function ChangePassword() {
border: "1px solid #d1d5db",
userSelect: "none",
textDecoration: "line-through",
fontFamily: "cursive",
fontFamily: "Verdana",
}}
>
{captcha}

View File

@@ -63,7 +63,7 @@ export default function SetPreferredNameSimple() {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-Login-Type": "IB",
"X-Login-Type": "IB",
Authorization: `Bearer ${token}`,
},
});
@@ -168,7 +168,7 @@ export default function SetPreferredNameSimple() {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Login-Type": "IB",
"X-Login-Type": "IB",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({ user_name: preferredName }),
@@ -215,8 +215,8 @@ export default function SetPreferredNameSimple() {
});
return;
}
if(preferredName !== confirmName){
notifications.show({
if (preferredName !== confirmName) {
notifications.show({
title: "Mismatch Input",
message: "Preferred name and Confirm preferred name not same.",
color: "red",
@@ -330,7 +330,7 @@ export default function SetPreferredNameSimple() {
border: "1px solid #d1d5db",
userSelect: "none",
textDecoration: "line-through",
fontFamily: "cursive",
fontFamily: "Verdana",
}}
>
{captcha}

View File

@@ -361,7 +361,7 @@ export default function ChangePassword() {
fontSize: "18px",
textDecoration: "line-through",
padding: "4px 8px",
fontFamily: "cursive",
fontFamily: "Verdana",
}}
>
{captcha}

View File

@@ -173,7 +173,7 @@ export default function SetLoginPwd() {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Login-Type': 'IB',
'X-Login-Type': 'IB',
'Authorization': `Bearer ${token}`
},
body: JSON.stringify({
@@ -312,7 +312,7 @@ export default function SetLoginPwd() {
/>
<Group mt="sm" align="center">
<Box style={{
backgroundColor: "#fff", fontSize: "18px", textDecoration: "line-through", padding: "4px 8px", fontFamily: "cursive",
backgroundColor: "#fff", fontSize: "18px", textDecoration: "line-through", padding: "4px 8px", fontFamily: "Verdana",
userSelect: "none",
pointerEvents: "none",
}}

View File

@@ -336,7 +336,7 @@ export default function SetTransactionPwd() {
{/* CAPTCHA */}
<Group mt="sm" align="center">
<Box style={{
backgroundColor: "#fff", fontSize: "18px", textDecoration: "line-through", padding: "4px 8px", fontFamily: "cursive",
backgroundColor: "#fff", fontSize: "18px", textDecoration: "line-through", padding: "4px 8px", fontFamily: "Verdana",
userSelect: "none",
pointerEvents: "none",
}}

View File

@@ -14,8 +14,8 @@ interface SendOtpPayload {
}
function getStoredMobileNumber(): string {
// const mobileNumber = localStorage.getItem('remitter_mobile_no');
const mobileNumber = "7890544527";
const mobileNumber = localStorage.getItem('remitter_mobile_no');
// const mobileNumber = "7890544527";
if (!mobileNumber) throw new Error('Mobile number not found.');
return mobileNumber;
}

View File

@@ -141,13 +141,13 @@ export default function Login() {
background: 'linear-gradient(to right, #48ac64ff, #199444ff)'
}}>
<Box style={{ flex: 1, backgroundColor: "#c1e0f0", position: "relative" }}>
<Image
fit="cover"
src={frontPage}
component={NextImage}
alt="ebanking"
style={{ width: "100%", height: "100%" }}
/>
<Image
fit="cover"
src={frontPage}
component={NextImage}
alt="ebanking"
style={{ width: "100%", height: "100%" }}
/>
</Box>
<Box w={{ base: "100%", md: "50%" }} p="lg">
<Card shadow="md" padding="xl" radius="md" style={{ maxWidth: 500, margin: "0 auto", height: '70vh', backdropFilter: 'blur(8px)' }}>
@@ -171,7 +171,7 @@ export default function Login() {
mt="sm"
/>
<Group mt="sm" align="center">
<Box style={{ backgroundColor: "#fff", fontSize: "18px", textDecoration: "line-through", padding: "4px 8px", fontFamily: "cursive" }}>{captcha}</Box>
<Box style={{ backgroundColor: "#fff", fontSize: "18px", textDecoration: "line-through", padding: "4px 8px", fontFamily: "Verdana" }}>{captcha}</Box>
<Button size="xs" variant="light" onClick={regenerateCaptcha}>Refresh</Button>
</Group>

View File

@@ -262,7 +262,7 @@ function LoginEmandate() {
/>
<Group mt="sm" align="center">
<Box style={{ backgroundColor: "#fff", fontSize: "18px", textDecoration: "line-through", padding: "4px 8px", fontFamily: "cursive" }}>{captcha}</Box>
<Box style={{ backgroundColor: "#fff", fontSize: "18px", textDecoration: "line-through", padding: "4px 8px", fontFamily: "Verdana" }}>{captcha}</Box>
<Button size="xs" variant="light" onClick={regenerateCaptcha}>Refresh</Button>
</Group>
<TextInput
@@ -328,7 +328,7 @@ function LoginEmandate() {
fontSize: "16px",
textDecoration: "line-through",
padding: "4px 8px",
fontFamily: "cursive",
fontFamily: "Verdana",
}}
>
{captcha}

View File

@@ -45,8 +45,8 @@ export default function Login() {
}
try {
// await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: mobile });
await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: "7890544527" });
await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: mobile });
// await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: "7890544527" });
notifications.show({
color: 'orange',
title: 'OTP Required',
@@ -67,8 +67,8 @@ export default function Login() {
async function handleVerifyOtp(mobile?: string) {
try {
if (mobile) {
// await verifyLoginOtp(otp, mobile);
await verifyLoginOtp(otp, '7890544527');
await verifyLoginOtp(otp, mobile);
// await verifyLoginOtp(otp, '7890544527');
return true;
}
}
@@ -563,7 +563,7 @@ export default function Login() {
</Box>
<Group align="center">
<Box style={{
backgroundColor: "#fff", fontSize: "18px", textDecoration: "line-through", padding: "4px 8px", fontFamily: "cursive",
backgroundColor: "#fff", fontSize: "18px", textDecoration: "line-through", padding: "4px 8px", fontFamily: "Verdana",
userSelect: "none",
pointerEvents: "none",
}}