laravel-MasterPass | securely setup a master password | Authentication library
kandi X-RAY | laravel-MasterPass Summary
kandi X-RAY | laravel-MasterPass Summary
Helps you securely setup a master password and login into user accounts with it.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get user entity by username .
- Validate the master password .
- Register the auth providers .
- Bootstrap the application .
- Check master pass
- Change the users driver .
- Create users table .
- Migrate users .
- Get the master password .
laravel-MasterPass Key Features
laravel-MasterPass Examples and Code Snippets
Community Discussions
Trending Discussions on laravel-MasterPass
QUESTION
I've got a website written in pure PHP and now I'm learning Laravel, so I'm remaking this website again to learn the framework. I have used built-in Auth
Fasade to make authentication. I would like to understand, what's going on inside, so I decided to learn more by customization. Now I try to make a master password, which would allow direct access to every single account (as it was done in the past).
Unfortunately, I can't find any help, how to do that. When I was looking for similar issues I found only workaround solutions like login by admin and then switching to another account or solution for an older version of Laravel etc.
I started studying the Auth
structure by myself, but I lost and I can't even find a place where the password is checked. I also found the very expanded solution on GitHub, so I tried following it step by step, but I failed to make my own, shorter implementation of this. In my old website I needed only one row of code for making a master password, but in Laravel is a huge mountain of code with no change for me to climb on it.
As far I was trying for example changing all places with hasher->check
part like here:
ANSWER
Answered 2021-Dec-29 at 02:54Here is a possible solution.
To use a master password, you can use the loginUsingId function
Search the user by username, then check if the password matches the master password, and if so, log in with the user ID that it found
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install laravel-MasterPass
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page