fix: login page
This commit is contained in:
@@ -15,15 +15,14 @@ export default function Login() {
|
|||||||
const [psw, SetPsw] = useState('');
|
const [psw, SetPsw] = useState('');
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
async function handleLogin(e:React.FormEvent) {
|
async function handleLogin(e: React.FormEvent) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
// const login_password =localStorage.setItem("password",psw);
|
// const login_password =localStorage.setItem("password",psw);
|
||||||
if (CIF === "30022497139" && psw === "SecurePass123!")
|
if (CIF === "30022497139" && psw === "SecurePass123!") {
|
||||||
{
|
const token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30";
|
||||||
const token ="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30";
|
localStorage.setItem("customerNumber", CIF);
|
||||||
localStorage.setItem("customerNumber",CIF);
|
localStorage.setItem("password", psw);
|
||||||
localStorage.setItem("password",psw);
|
localStorage.setItem("access_token", token);
|
||||||
localStorage.setItem("access_token",token);
|
|
||||||
router.push("/home");
|
router.push("/home");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,8 +140,27 @@ export default function Login() {
|
|||||||
</Box>
|
</Box>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<Box
|
||||||
|
component="footer"
|
||||||
|
style={{
|
||||||
|
width: '100%',
|
||||||
|
// backgroundColor: '#004d99',
|
||||||
|
// color: 'white',
|
||||||
|
textAlign: 'center',
|
||||||
|
padding: '10px 0',
|
||||||
|
position: 'fixed',
|
||||||
|
bottom: 0,
|
||||||
|
left: 0,
|
||||||
|
zIndex: 1000,
|
||||||
|
fontSize: '14px',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Text>
|
||||||
|
© 2025 KCC Bank. All rights reserved. | <Anchor href="/disclaimer" >Disclaimer</Anchor> | <Anchor href="/privacy" >Privacy Policy</Anchor>
|
||||||
|
</Text>
|
||||||
|
</Box>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</Providers>
|
</Providers>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user