fix: login page
This commit is contained in:
@@ -15,18 +15,17 @@ export default function Login() {
|
||||
const [psw, SetPsw] = useState('');
|
||||
const router = useRouter();
|
||||
|
||||
async function handleLogin(e:React.FormEvent) {
|
||||
async function handleLogin(e: React.FormEvent) {
|
||||
e.preventDefault();
|
||||
// const login_password =localStorage.setItem("password",psw);
|
||||
if (CIF === "30022497139" && psw === "SecurePass123!")
|
||||
{
|
||||
const token ="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30";
|
||||
localStorage.setItem("customerNumber",CIF);
|
||||
localStorage.setItem("password",psw);
|
||||
localStorage.setItem("access_token",token);
|
||||
if (CIF === "30022497139" && psw === "SecurePass123!") {
|
||||
const token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30";
|
||||
localStorage.setItem("customerNumber", CIF);
|
||||
localStorage.setItem("password", psw);
|
||||
localStorage.setItem("access_token", token);
|
||||
router.push("/home");
|
||||
}
|
||||
|
||||
|
||||
else {
|
||||
notifications.show({
|
||||
withBorder: true,
|
||||
@@ -141,8 +140,27 @@ export default function Login() {
|
||||
</Box>
|
||||
</Card>
|
||||
</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>
|
||||
</Providers>
|
||||
);
|
||||
|
Reference in New Issue
Block a user