Git Product home page Git Product logo

wd-user-bundle's Introduction

WDUserBundle

Ajouter fichier de configuration dans config > packages > webetdesign > wd_cms > wd_user.yaml

wd_user:
  user:
    class: App\Entity\User\User (valeur par défault)
  group:
    class: App\Entity\User\Group (valeur par défault)

Ajouter fichier de configuration dans config > routes > wd_user.yaml

wd_user:
  resource: "@WDUserBundle/Resources/config/routing.yaml"

Intégration d'une page de connexion autre que l'admin

web_et_design_cms:
  pages:
    account_section:
      label: '▰▰ Rubrique utilisateur'
      template: pages/section.html.twig
      disableRoute: true
    login: # Utilisée dans sécurity controller pour définir une page et get les knp par exemple
      label: 'Page de connexion'
      route: login_page
    reset_password_request:
      label: 'Demande de réinitialisation de mot de passe'
      controller: WebEtDesign\UserBundle\Controller\User\ResettingController
      action: request
      route: !php/const WebEtDesign\UserBundle\Controller\User\ResettingController::ROUTE_RESETTING_REQUEST
      methods: [ 'GET', 'POST' ]
      template: '@WDUserBundle/Resources/views/resetting_request.html.twig'
    reset_password:
      label: 'Réinitialisation de mot de passe oublié'
      controller: WebEtDesign\UserBundle\Controller\User\ResettingController
      action: resetting
      route: !php/const WebEtDesign\UserBundle\Controller\User\ResettingController::ROUTE_RESETTING
      methods: [ 'GET', 'POST' ]
      template: '@WDUserBundle/Resources/views/resetting.html.twig'
      params:
        token:
          default: null
          requirement: null

Modifier le sonata_admin pour :

sonata_admin:
    ...
    dashboard:
        groups:
            ...
            user:
                label: Utilisateurs
                icon: '<i class="fa fa-user"></i>'
                items:
                    - wd.user.admin.user
                    - wd.user.admin.group

Require dans l'application :
- entity User
- entity Group
- repository User

wd-user-bundle's People

Contributors

clement-wd avatar youpidok avatar br-development avatar torpelix avatar talanon avatar rommel25 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.