Current: Users can only login with their Google account, and registration is done automatically on first login.
Expected: Users should have the option to register and login also by providing their full name, email and a password.
Add the login form in src\pages\Login.vue, preferably as a separate component.
Add another route at /auth/register for the registration form.
Users registered should use the same model as Google users (src/models/User.js). Note: Don't store passwords in firestore. Use Firebase password authentication method.
Make sure users cannot register twice (email is unique).
For help see the second tutorial this app is based on. There you can see an implementation of password based authentication with Firebase, which I chose not to follow.
Current: Users can only login with their Google account, and registration is done automatically on first login. Expected: Users should have the option to register and login also by providing their full name, email and a password.
src\pages\Login.vue
, preferably as a separate component./auth/register
for the registration form.src/models/User.js
). Note: Don't store passwords in firestore. Use Firebase password authentication method.For help see the second tutorial this app is based on. There you can see an implementation of password based authentication with Firebase, which I chose not to follow.