fernet/auth

This package is abandoned and no longer maintained. No replacement package was suggested.

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

dev-master 2021-04-28 06:20 UTC

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; ?>