how can i login to my heroku deployed laravel site login panel? - heroku

i have two accounts one is user and another is admin account in users table of laravel project.i have deployed my full project on Heroku.my project is running fine but now i can't login to login panel using those accounts anymore.it says
These credentials do not match our records
now how to solve this?

Related

AD Group Access in Angular using MSAL

How to access the Azure Active Directory group in Angular for a logged in user using MSAL.
I am able to authenticate the user using MSAL. But I am not able to access the AAD group of the user.
I have a public facing web site where we are implementing a ADMIN page for master data update etc.
My requirement is to display a ADMIN page if user is part of a specific AAD group like "AD_Project_Admin". Also I want to display a BUTTON only if user is authenticated and if user is part of AAD group like "AD_Project_Admin".
Any help on this will be appreciated.

Login Access from 2 different mysql table

Can anyone help me configuring my Spring boot web app to access or have login from 2 different MySQL tables?
App should login access from 2 different MySQL tables(users and admins).
Upon login, they should be redirected to their respective dashboards.
For now, I am able to configure my web app to access user details from users table, unable to access admin table for login.

How to register a normal user using django oAuth toolkit

I am using the Django-Oauth-toolkit in my web app development.In that i can able to create new application using django admin panel and created the new admin users.And i can able to login that newly created admin users and able to get the token.But my problem is, i can able to register the user using my model and user is created in my db.But when i try to login with created user and try to get token with o/token with oauth grand type, then i am not getting token and getting invalid credentials response.But super user credentials login and token generation is working fine.And in django admin panel, super users are listed under 'Authetication and authorization' and normal users are listed under Django app.So please help me how to generate the tokens for users which are registered in django app.Or how to create the super users from django app.
I hope you found a solution to your issue. I was facing the same problem, and stumble on this answer.
You should check it out.
On the other hand you should use django's createsuperuser command to add users, so that they are also registered in your django oauth toolkit application.

login as a user and admin at the same time in laravel

I am working on a laravel project in which from ADMIN panel I can log in in the user module, but when I want to go back from the browser the admin panel is not working means admin is logout. is there any method in which I can log in in both module admin and user.
If you log in as one user, you log out as the other.
I see 2 possibilities:
1) Make 2 user tables, with separate login/logout/etc. one for your frontend users, one for your admin panel.
The advantage here is that your regular users will never be able to login as an admin, because they don't exist in that table.
2) Separate your frontend and admin panel into 2 different projects. You can link them to the same database. Put the admin panel on a subsite admin.my-project.com.
The advantage here is that you seperate your logic between 2 projects, each focused on different functionality, with their own styling, layout and most important for your example: authentication.
Use an incognito browser window for your admin tasks, which will enable you to be logged in to the same app twice.
You could solve your problem with two possible ways that laravel provide and you could google about "laravel multi auth example".
Multiple authentications using "middleware"
Multiple authentications using auth "guards"
Here are two articles will help you to understand and show you the implement with an example:
Laravel 6 Multi Auth (Authentication) Tutorial
How to use multiple authentication guards in a Laravel app

Laravel Voyager - Redirect to a different page after saving user preferences

I am using Laravel Voyager to develop an application. Users are added using admin account which has all the rights.
If a normal user whose role doesn't have access to browse users logs in to the application and tries to save his details after editing profile, gets a 403 forbidden error.
Is there any way in Voyager, through which I can set the redirect URL after user saves the data?

Resources