Setting up the login form
We now have a User model for handling our form state, plus we've linked our login form inputs to the to this model.
Next, we need to handle the login form submission process where we'll use Vue Auth for the login API request.
You'll see I've stubbed a method on this component called submit
which we can now complete. The part I've already defined is a validation check to ensure that the user has supplied valid data to the form.
Click to load comments...