DonkeyKongJr / pimlify

A vue (pwa) to take orders for our most favorite restaurant. All data is stored in firebase.
MIT License
1 stars 0 forks source link

Add Login Page #21

Closed DonkeyKongJr closed 6 years ago

DonkeyKongJr commented 6 years ago

Is your feature request related to a problem? Please describe. Since Firebase should be secured by authentication every user who wants to access the data should be authenticated. Currently the user registration supports email and password combination.

Describe the solution you'd like A dedicated Login view where user can authenticate themselve by email and password. If the user wants to access a secured route and isn't authenticated he sould be redirected to the login page. The Login Page should be the new default/start page.

DonkeyKongJr commented 6 years ago

Login and Logout Page/Mechanismn was added with #25.

Left open is protecting routes by logged in state and redirect to login page when user isn't authenticated. After login was successful the user should be redirected to the restaurant route.

DonkeyKongJr commented 6 years ago

The navigation guard could be global, right @Opiskull?

https://router.vuejs.org/guide/advanced/navigation-guards.html#global-guards

DonkeyKongJr commented 6 years ago

Route Guards were introduced with #29