From 721dce1622aa0615bcd1a63c4b4d2cd67b3b616a Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Mon, 6 Oct 2025 15:59:16 +0800 Subject: [PATCH] Applied keyboard event --- src/pages/LoginPage/Login.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/pages/LoginPage/Login.tsx b/src/pages/LoginPage/Login.tsx index 3cfb38c..88bbb4f 100644 --- a/src/pages/LoginPage/Login.tsx +++ b/src/pages/LoginPage/Login.tsx @@ -6,6 +6,7 @@ import { ofetch } from 'ofetch' import { SHA1, SHA3 } from 'crypto-js' import { useNavigate } from '@solidjs/router' import { checkConnection } from '../../utils/functions' +import { _employeeId, _employeeName } from '../../stores/employee' export default () => { const API = import.meta.env.VITE_BACKEND @@ -39,6 +40,8 @@ export default () => { } if (dbpassword.result === hashPassword) { + _employeeId.set(employeeid) + _employeeName.set(name()) setLoggedin(2) } else { setLoggedin(1) @@ -84,7 +87,8 @@ export default () => { - + + {/*
*/} Login @@ -102,7 +106,13 @@ export default () => { {APPROVERNAME}

Password

- + { + if (event.key === 'Enter') login() + }} + /> @@ -129,6 +139,7 @@ export default () => { + {/*
*/}