jdicdican / knowlaravel

Laravel project for experiments (The Blog/Article Project)
0 stars 0 forks source link

Authentication Module #3

Open jdicdican opened 6 years ago

jdicdican commented 6 years ago

Admin & Author can login to the application

Using url /user/login, user can login and should automatically determine if admin or author basing on the user records.

Screen (/user/login):

Validation:

Example:

  1. Record 1 (admin): username: admin, password: welcome, user_type: 1 (admin)
    • should login, create session and go to admin dashboard (just raw html saying Welcome Admin! for now)
  2. Record 2 (author): username: john, password: welcome, user_type: 2 (author)
    • should login, create session and go to author dashboard (just raw html saying Welcome Author! for now)
silverhero13 commented 6 years ago

login

dashboard_admin

dashboard_author

jdicdican commented 6 years ago

@silverhero13 PR #11 was the raw auth implementation (which is good). Please implement following the Laravel Authentication docs.