Comments (4)
Ok I didn't realize that 😅
You are right, the best way is to create a User
model to create users in JavaScript.
With the ORM you should be able to serialize/unserialize the roles
field in database easily.
from coopcycle-web.
Users can register via the website & authenticate to obtain a token via the HTTP API, which is the PHP/Symfony stuff.
On the WebSocket/Node.js side, users can't register or authenticate, they need to provide a token.
I don't think this is an issue to create users via Symfony CLI, it is the CLI for the whole app.
It is a reliable interface: the commands won't change, we don't interact directly with the database.
from coopcycle-web.
I got that. The issue I have is that I am using docker, so I can't use the php CLI from the nodejs container. So I can't run the mocha tests locally because createUser
relies on it.
(will solve #25 also)
from coopcycle-web.
Fixed in bc51985
from coopcycle-web.
Related Issues (20)
- In order to clean up stuff As an admin I want to be able to delete objects in the admin part
- fix: the delivery form gets broken if the total price of the order is 0
- "Create order" should be ticked by default for stores
- "edenred_enabled" is not set when creating a restaurant
- In the admin, If you chose a different map provider than google maps the form stills validate the GoogleMap API Key HOT 1
- i want to be able to hide tours or add a specific color HOT 3
- Is it possible to remove the mention of Swile in /order/payment when i want to add a new card [Naofood]
- Prevent clicking on the Order button multiple times on the Address page (mobile web only)
- When inviting a user with an email link, the email should automatically be filled in when clicking in the link
- When i make an account, the "check it out" link should send me to a different page
- Be able to change the admin email of a business account HOT 1
- Business account problem: with existing user account doesnt work HOT 1
- When creating a buisness account, the cooperative should create delivery address, and the linked page should only ask for business info
- text is wrong for a business account link
- when activating a business account, when i click "create order" it takes me to an order page which i dont need HOT 1
- business account order history confusion
- pricing problem with TLOK HOT 4
- cancelled task showing as not cancelled
- In the admin, on a pricing rule set page (+ list), show where it is used + In the admin, on a package set page (+ list), show where it is used
- Default selection of packages does not work anymore 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 coopcycle-web.