Skip to content

Commit

Permalink
Clarify the message behind Meteor.user().profile
Browse files Browse the repository at this point in the history
The `profile` field is public and writable by the user.
  • Loading branch information
Slava committed Dec 8, 2014
1 parent b08c5a1 commit 23ee096
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/client/full-api/api/accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ the [`Meteor.users`](#meteor_users) collection.
On the client, this will be the subset of the fields in the document that
are published from the server (other fields won't be available on the
client). By default the server publishes `username`, `emails`, and
`profile`. See [`Meteor.users`](#meteor_users) for more on
`profile` (writable by user). See [`Meteor.users`](#meteor_users) for more on
the fields used in user documents.

{{> autoApiBox "Meteor.userId"}}
Expand Down Expand Up @@ -71,8 +71,9 @@ treats the following fields specially:
a Boolean which is true if the user has [verified the
address](#accounts_verifyemail) with a token sent over email.
- `createdAt`: the Date at which the user document was created.
- `profile`: an Object which (by default) the user can create
and update with any data.
- `profile`: an Object which the user can create and update with any data.
Do not store anything on `profile` that you wouldn't want the user to edit
unless you have a deny rule on the `Meteor.users` collection.
- `services`: an Object containing data used by particular
login services. For example, its `reset` field contains
tokens used by [forgot password](#accounts_forgotpassword) links,
Expand Down Expand Up @@ -389,4 +390,4 @@ These functions return an object with a single method, `stop`. Calling

The callbacks are called with a single argument, the same attempt info
object as [`validateLoginAttempt`](#accounts_validateloginattempt).
{{/template}}
{{/template}}

0 comments on commit 23ee096

Please sign in to comment.