Comments (3)
Solution: Update docs to explain it.
from docs.
This conflicts with the concept of https://guide.meteor.com/accounts.html#dont-use-profile and #61.
Essentially, don't use profile
. Closing, but reopen if you feel differently. ;)
from docs.
It does already say this in the accounts-multi doc here
The default create user function simply copies options.profile into the new user document. Calling onCreateUser overrides the default hook. This can only be called once.
There are two issues I see:
- The main thing which was non-intuitive to me, which is that
onCreateUser
overwrites instead of acting as a callback. I suppose I am to blame for not reading the docs before using the method, but still, I don't see this behavior being a feature. - The notion that
profile
should not be used. Reading through the explanation of why it's not a good idea (the default write permission and the fact that people put arbitrary config data there), I see those as good points, but I'm not sure they outweigh the benefits, namely:- the ability to get the username when using a 3rd party service, i.e. accounts-github
- the fact that it's intuitive and easily discoverable when poking around the
Meteor.user()
object
If profile
needs manually configured access rules, then perhaps there should be a builtin warning about it. As it stands, though, unless one reads through the doc entry for each method they use (probably a good idea, but uncommon) then they will inevitable have to stumble upon this error in a manner similarly to that of myself: googling "meteor no user profile", reading through an issues thread, then following a link to the docs.
from docs.
Related Issues (20)
- Upsert documentation is misleading HOT 4
- Implementing Accounts Without Wrapping a Blaze component in React HOT 1
- Question: Use fork or local clone as the source for /code? HOT 2
- deploy/netlify PR check broken HOT 1
- Docs show 1.8 as latest version HOT 5
- CLI docs are missing --mobile-settings option for build
- Docs for v1.8 not available HOT 1
- No meteor typescript documentation HOT 2
- Add meteor publish --update to the docs HOT 4
- changes appears twice in v1.9 change log
- create basic documentation for the Accounts.createUserVerifyingEmail function HOT 2
- meteor create command is still not updated HOT 1
- Dynamic import cors issue and fix not documented HOT 1
- CSP Helmet example needs to cover hashes for modern and legacy bundles
- Document --exclude-archs flag
- Meteor commands are not orderd alphabetically HOT 1
- Meteor v2.2 API docs not available (404) HOT 2
- Cannot navigate back to new API docs from older API docs HOT 5
- Logo messed up when navigating directly to older versions of the docs HOT 2
- password_server methods documentation 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 docs.