mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: add validation for login
This commit is contained in:
1 parent
fc6ac11c60
commit
203114cd5e
6 files changed
+44
-24
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user