instante / tracy-login
Allows quick login to any user account using Tracy bar panel
Installs: 10 469
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.5.0
- latte/latte: ~2.3
- nette/application: ~2.3
- nette/security: ~2.3
- tracy/tracy: ~2.3
Requires (Dev)
This package is not auto-updated.
Last update: 2024-10-26 20:20:53 UTC
README
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.