Skip to content

cms-forks/LaraPersonate

 
 

Repository files navigation

Demonstration

Octopy Sudo

Allow a developer direct login as another user during development inspired by sudo-su.

The reason this library was made is because the sudo-su package has been inactive for the past few years, I see someone who has a problem when there are so many users on the database when using the library.

New Feature

  • Limit the number of users displayed
  • Search form using tail select.
  • Auto discovery, no more setting up your ServiceProvider manually.
  • Automatic injection via a middleware, no need to add some code to the blade.

Installation

To install the package, simply follow the steps below.

Install the package using Composer:

$ composer require supianidz/laravel-impersonate --dev

$ php artisan vendor:publish

Configuration

After running vendor:publish, a config file called sudo.php should appear in your project.

To Do

  • Unit Test
  • UI Improvement
  • Showing user role based on 3rd library like Laratrust, Bouncer and others.

Disclaimer - DANGER!

This package can pose a serious security issue if used incorrectly, as anybody will be able to take control of any user's account. Please ensure that the service provider is only registered when the app is in a debug/local environment.

By default, the package will disable itself on any domains that don't have a TLD of .dev or .local. This is a security measure to reduce the risk of accidentally enabling the package in production.

By using this package, you agree that Octopy ID and the contributors of this package cannot be held responsible for any damages caused by using this package.

About

Sign in as another user directly

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 66.9%
  • HTML 16.1%
  • CSS 14.1%
  • JavaScript 2.9%