feat: add validation for login

This commit is contained in:
wancat committed 2023-11-01 21:35:25 +08:00
1 parent fc6ac11c60
commit 203114cd5e
6 files changed
+44 -24

No files matched your search

+1
View File
@@ -11,6 +11,7 @@ const handleLogin = async ({ username, password, success, error }) => {
else error('Wrong username or password.')
} catch (err) {
console.error(err)
error('Something went wrong.')
}
}
</script>