Comments (4)
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.
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.
from symfony-demo-app.
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)
- Demo Site is down HOT 2
- Switch to Docker
- Could not scan for classes inside "var/phpunit/phpunit-7.5/src/" HOT 1
- Add docker elasticsearch container / fix JWT
- Shell for user-bundle demo with bootstrap and jquery HOT 1
- Document Social Media Login HOT 1
- Use API Platform + SF Messenger dedicated
- Ditch src/DataFixtures in favor of yaml fixtures
- Implement ongr-io/ElasticsearchBundle
- Foreign key error on staging servers HOT 1
- Multiple email: forgot password looks for email in users table... HOT 4
- msgphp_user.current.email takes always credential email HOT 4
- Multiple email - forgot password always sends email to primary email HOT 1
- Switch Eav\Attribute to use string identifiers
- Switch Elasticsearch container
- No alive nodes found in your cluster error HOT 6
- Flatten structure HOT 1
- Add Symfony HTTP Responder
- Documentation for implementing email confirmation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symfony-demo-app.