finished user prfile and passwords

This commit is contained in:
2022-11-01 14:57:36 +01:00
parent a488e489da
commit 560e96cf18
61 changed files with 1581 additions and 852 deletions

@ -15,7 +15,7 @@ return [
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle::class => ['all' => true],
Knp\Bundle\TimeBundle\KnpTimeBundle::class => ['all' => true],
FOS\CKEditorBundle\FOSCKEditorBundle::class => ['all' => true],
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
SymfonyCasts\Bundle\VerifyEmail\SymfonyCastsVerifyEmailBundle::class => ['all' => true],
SymfonyCasts\Bundle\ResetPassword\SymfonyCastsResetPasswordBundle::class => ['all' => true],
];

@ -1,8 +0,0 @@
api_platform:
mapping:
paths: ['%kernel.project_dir%/src/Entity']
patch_formats:
json: ['application/merge-patch+json']
swagger:
versions: [3]
show_webby: false

@ -1,5 +0,0 @@
# Read the documentation: https://symfony.com/doc/current/bundles/FOSCKEditorBundle/index.html
twig:
form_themes:
- '@FOSCKEditor/Form/ckeditor_widget.html.twig'

@ -1,7 +1,7 @@
# see https://symfony.com/doc/current/reference/configuration/framework.html
framework:
secret: '%env(APP_SECRET)%'
#csrf_protection: true
csrf_protection: true
http_method_override: false
# Enables session support. Note that the session will ONLY be started if you read or write from it.

@ -16,7 +16,7 @@ framework:
# sync: 'sync://'
routing:
Symfony\Component\Mailer\Messenger\SendEmailMessage: async
#Symfony\Component\Mailer\Messenger\SendEmailMessage: async
Symfony\Component\Notifier\Message\ChatMessage: async
Symfony\Component\Notifier\Message\SmsMessage: async

@ -0,0 +1,4 @@
symfonycasts_reset_password:
request_password_repository: App\Repository\ResetPasswordRequestRepository
lifetime: 3600
throttle_limit: 1

@ -22,13 +22,11 @@ security:
main:
lazy: true
provider: app_user_provider
# custom_authenticator: App\Security\LoginFormAuthenticator
json_login:
check_path: app_login
username_path: username
password_path: password
custom_authenticator: App\Security\LoginFormAuthenticator
##form_login:
# login_path: app_login
# check_path: app_login
logout:
path: app_logout
switch_user: true

@ -1,7 +1,10 @@
twig:
default_path: '%kernel.project_dir%/templates'
# default_path: '%kernel.project_dir%/templates'
paths:
'%kernel.project_dir%/templates/themes/default': default
'%kernel.project_dir%/templates/admin': admin
form_themes:
- '@FOSCKEditor/Form/ckeditor_widget.html.twig'
- bootstrap_5_layout.html.twig
when@test:
twig:

@ -1,4 +0,0 @@
api_platform:
resource: .
type: api_platform
prefix: /api