fernet / auth
Auth plugin for the Fernet framework
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/fernet/auth
Requires
- fernet/doctrine: ^0.3
- fernet/framework: ^0.3
This package is auto-updated.
Last update: 2024-03-28 13:20:36 UTC
README
Auth plugin for the Fernet framework
Configuration
The configuration in fernet.yml is optional:
auth: invalidMessage: "Wrong username or password" userEntity: "App\Entity\MyUser" redirectTo: "/admin/"
If you set up the plugin manually don't forget to add "fernet/doctrine" to the plugins.json file.
Usage
<?php if ($this->auth->isLogged()): ?> <Logout>Sign out</Logout> <?php else: ?> <Login /> <?php endif; ?>