Skip to content

Tracy bar panel to quickly login to any account without password

License

Notifications You must be signed in to change notification settings

Zazimou/tracy-login

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instante Tracy Login

Build Status Downloads this Month Latest stable

Installation

The best way to install Instante Tracy Login is using Composer:

$ composer require instante/tracy-login

Configuration

Add new extension to config (e.g. extensions.neon):

extensions:
    debugLogin: Instante\Tracy\Login\DI\DebugLoginExtension

Then you should enable it in your local config. Never do that on production server!

debugLogin:
    enabled: true

Optional configuration

Login bar natively works with Instante/skeleton doctrine user. Default User class is App\Model\User\User. You can change it in setup:

debugLogin:
    dao:
        entity: Your\Custom\User

Or

debugLogin:
    dao: "Instante\Tracy\Login\DoctrineUserDao(Your\Custom\User)"

You can write your own UserDao which implements IUserDao. Then you have to update setup:

debugLogin:
    dao: "Your\Custom\Dao"

Identifier

Default identifier is 'email' so method 'getEmail()' will be called. You can change it in setup:

debugLogin:
    identifier: "fullName"

and then 'getFullName()' will be called. But you can add as many methods as you want:

debugLogin:
    identifier: {"email", "fullName"}

and then both, 'getEmail()' and 'getFullName()' will be called.

About

Tracy bar panel to quickly login to any account without password

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 84.2%
  • HTML 13.5%
  • Shell 2.3%