DevMarketer / multiauth_tutorial

156 stars 83 forks source link

problem with Admin table #21

Open ullash099 opened 6 years ago

ullash099 commented 6 years ago

it always take user and admin login info from users table not admins table. how to solve it Thanks

kamleshwebtech commented 5 years ago

How to add admin account in admins table so that i can login into admin panel. Now system always creates an account of user. Please check and suggest me how to check admin panel. Thanks a lot!

kamleshwebtech commented 5 years ago

i have added a record in admins table, now i am able to login into admin account.

INSERT INTO admins (id, name, email, job_title, password, remember_token, created_at, updated_at) VALUES (NULL, 'adminuser', 'admin@admin.com', 'Admin', '$2y$10$F.NvVlkEWphdqY/egcoP5uyGBZKk63X18YkYmxHIYdZ8Tbdg59wBK', NULL, '2019-01-31 00:00:00', '2019-01-31 00:00:00');

BippyMiester commented 4 years ago

it always take user and admin login info from users table not admins table. how to solve it Thanks

Make sure that you are defining your guards correctly. You can reference this file for more information.