sveltejs / realworld

SvelteKit implementation of the RealWorld app
https://realworld.svelte.dev
MIT License
2.23k stars 353 forks source link

Showing validation errors in login form #158

Closed alokmahor closed 1 year ago

alokmahor commented 1 year ago

Login is implemented at https://github.com/sveltejs/realworld/tree/master/src/routes/login

Login is implemented at server side in +page.server.js

How can I display validation errors like wrong password or email does not exists in below input fields in login page itself?

Or +error.js is the only option ?