Explicitly send register: false during login (#1596)

* Explicitly send register: false during login

* Update CHANGELOG.md
This commit is contained in:
Nikola Irinchev 2018-01-08 11:32:05 +02:00 committed by GitHub
parent 16a218ad49
commit d6a8cbb1f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ X.Y.Z Release notes
should help with failing token refreshes on a loaded server.
### Internal
* None.
* Explicitly send `register: false` when logging in with `Realm.Sync.User.login` to avoid creating the user if they don't exist.
2.1.1 Release notes (2017-12-15)
=============================================================

View File

@ -225,7 +225,7 @@ const staticMethods = {
checkTypes(arguments, ['string', 'string', 'string', 'function']);
const json = {
provider: 'password',
user_info: { password: password },
user_info: { password: password, register: false },
data: username
};