Changes to handlesubmit

This commit is contained in:
Peter KW 2024-03-17 19:17:34 +01:00
parent e7e79ced13
commit b999e47f94

View file

@ -15,9 +15,10 @@ function LoginPage(props: {
and if so, redirect to correct page */
function handleSubmit(event: FormEvent<HTMLFormElement>): void {
event.preventDefault();
props.setAuthority((prevAuth) => {
prevAuth = LoginCheck({ username: username, password: password });
return prevAuth;
LoginCheck({
username: username,
password: password,
setAuthority: props.setAuthority,
});
}