GithubHelp home page GithubHelp logo

Comments (4)

ro0NL avatar ro0NL commented on June 7, 2024

Hi @tacman i think i solved a similar use case in the demo app with "one-time-login tokens".

See #62 for the initial changeset

Conceptually you cannot register a new user by invitation code, and at the same time store the code with a user. In that case the user is already considered registered.

So alternatively you could create a list of invitation codes, and couple it with the created user after registration. But maybe you're just looking for one-time-login tokens :D

from symfony-demo-app.

ro0NL avatar ro0NL commented on June 7, 2024

From the example at https://symfony.com/doc/current/bundles/FOSUserBundle/adding_invitation_registration.html , im not sure how it works ... Where is the user created from an invitation? Or does it assume the users already exist beforehand 🤔 (maybe FOS does it somewhere?)

from symfony-demo-app.

tacman avatar tacman commented on June 7, 2024

from symfony-demo-app.

ro0NL avatar ro0NL commented on June 7, 2024

Maybe we can enhance the demo as such :) i tend to keep pure business logic (opinionated) out of core bundles.

Hence the demo defines it's own one-time-login console command, entities etc. All linked to the "core" User domain.

I think we're dealing with 2 distinct concepts;

  • one-time-login token
    • bound to an existing user
    • allows to login
  • invitations
    • bound to an existing user post registration
    • allows to register with pre-defined fields

from symfony-demo-app.

Related Issues (20)

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.