rd / authentication-bundle
User management & authentication bundle
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.4
- symfony/form: 5.*
- symfony/swiftmailer-bundle: ^3.4
- symfony/translation: 5.*
- symfony/twig-bundle: 5.*
This package is auto-updated.
Last update: 2024-11-07 07:56:35 UTC
README
Overview
- Registration
- Account verify
- Login & logout
- Reset password
This is fully configured bundle. Just install & copy/paste configuration.
Preview
Installation
Install bundle with Composer:
composer require rd/authentication-bundle
Update
config/packages/security.yaml
security: encoders: Rd\AuthenticationBundle\Entity\User: algorithm: bcrypt providers: database_provider: entity: class: Rd\AuthenticationBundle\Entity\User firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: anonymous: ~ provider: database_provider form_login: login_path: rd_authentication_login check_path: rd_authentication_login csrf_token_generator: security.csrf.token_manager logout: path: rd_authentication_logout target: /
Update
config/packages/framework.yaml
framework: secret: '%env(APP_SECRET)%' csrf_protection: true
Update
config/routes/annotation.yaml
rd_authentication: resource: ../../vendor/rd/authentication-bundle/Controller/ type: annotation
Update database schema
bin/console doctrine:schema:update --force
Configuration needed for live usage
config/packages/rd_authentication.yaml
rd_authentication: homepage: 'http://localhost' background: 'http://getwallpapers.com/wallpaper/full/a/5/d/544750.jpg' email: from: 'no-reply@localhost.net'