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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -173,7 +173,7 @@ export default function SetLoginPwd() {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'X-Login-Type': 'IB', 'X-Login-Type': 'IB',
'Authorization': `Bearer ${token}` 'Authorization': `Bearer ${token}`
}, },
body: JSON.stringify({ body: JSON.stringify({
@@ -312,7 +312,7 @@ export default function SetLoginPwd() {
/> />
<Group mt="sm" align="center"> <Group mt="sm" align="center">
<Box style={{ <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", userSelect: "none",
pointerEvents: "none", pointerEvents: "none",
}} }}

View File

@@ -336,7 +336,7 @@ export default function SetTransactionPwd() {
{/* CAPTCHA */} {/* CAPTCHA */}
<Group mt="sm" align="center"> <Group mt="sm" align="center">
<Box style={{ <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", userSelect: "none",
pointerEvents: "none", pointerEvents: "none",
}} }}

View File

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

View File

@@ -141,13 +141,13 @@ export default function Login() {
background: 'linear-gradient(to right, #48ac64ff, #199444ff)' background: 'linear-gradient(to right, #48ac64ff, #199444ff)'
}}> }}>
<Box style={{ flex: 1, backgroundColor: "#c1e0f0", position: "relative" }}> <Box style={{ flex: 1, backgroundColor: "#c1e0f0", position: "relative" }}>
<Image <Image
fit="cover" fit="cover"
src={frontPage} src={frontPage}
component={NextImage} component={NextImage}
alt="ebanking" alt="ebanking"
style={{ width: "100%", height: "100%" }} style={{ width: "100%", height: "100%" }}
/> />
</Box> </Box>
<Box w={{ base: "100%", md: "50%" }} p="lg"> <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)' }}> <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" mt="sm"
/> />
<Group mt="sm" align="center"> <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> <Button size="xs" variant="light" onClick={regenerateCaptcha}>Refresh</Button>
</Group> </Group>

View File

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

View File

@@ -45,8 +45,8 @@ export default function Login() {
} }
try { try {
// await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: mobile }); 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: "7890544527" });
notifications.show({ notifications.show({
color: 'orange', color: 'orange',
title: 'OTP Required', title: 'OTP Required',
@@ -67,8 +67,8 @@ export default function Login() {
async function handleVerifyOtp(mobile?: string) { async function handleVerifyOtp(mobile?: string) {
try { try {
if (mobile) { if (mobile) {
// await verifyLoginOtp(otp, mobile); await verifyLoginOtp(otp, mobile);
await verifyLoginOtp(otp, '7890544527'); // await verifyLoginOtp(otp, '7890544527');
return true; return true;
} }
} }
@@ -563,7 +563,7 @@ export default function Login() {
</Box> </Box>
<Group align="center"> <Group align="center">
<Box style={{ <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", userSelect: "none",
pointerEvents: "none", pointerEvents: "none",
}} }}