feat : api integrated change login password and change transaction password

This commit is contained in:
2025-09-02 16:33:08 +05:30
parent 26efdb82f2
commit 2d2d3f3e0d
9 changed files with 3325 additions and 1657 deletions

View File

@@ -6,7 +6,7 @@ import { Providers } from "@/app/providers";
import { useRouter } from "next/navigation";
import NextImage from "next/image";
import logo from '@/app/image/logo1.jpg';
import frontPage from '@/app/image/ib_front.jpg';
import frontPage from '@/app/image/ib_front_1.jpg';
import dynamic from 'next/dynamic';
import { generateCaptcha } from '@/app/captcha';
import { IconShieldLockFilled } from "@tabler/icons-react";
@@ -95,20 +95,20 @@ export default function Login() {
password: psw,
}),
});
const data = await response.json();
console.log(data);
if (!response.ok) {
notifications.show({
withBorder: true,
color: "red",
title: "Error",
message: "Internal Server Error",
message: data?.error || "Internal Server Error",
autoClose: 5000,
});
localStorage.removeItem("access_token");
localStorage.removeItem("remitter_name");
return;
}
const data = await response.json();
console.log(data);
setIsLogging(true);
if (response.ok) {
console.log(data);