Miroslav Bajtoš
a7d93f32b5
Merge pull request #3120 from strongloop/fix/user-reset-password
...
Fix User.resetPassword to call createAccessToken()
2017-01-20 10:58:31 +01:00
João Ribeiro
e63fea83f7
Fix User.resetPassword to call createAccessToken()
...
This allows User subclasses to override the algorithm used for building
one-time access tokens for password recovery.
2017-01-19 16:27:22 +01:00
Benjamin Kroeger
a6d511d8b4
Role model: resolves related models by name
...
Resolve models related to the `Role` model by name instead of class.
2017-01-16 15:48:24 +01:00
Miroslav Bajtoš
ff53933085
3.2.1
...
* Preserve current session when invalidating tokens (Miroslav Bajtoš)
* Clean up access-token-invalidation tests (Miroslav Bajtoš)
* Update docs.json (Rand McKinney)
* Simplify issue template (#3083 ) (Simon Ho)
* Warn about injectOptionsFromRemoteContext (Miroslav Bajtoš)
2017-01-16 12:01:47 +01:00
Miroslav Bajtoš
4ffe5fe17f
Merge pull request #3098 from strongloop/preserve-current-access-token
...
Preserve current session when invalidating access tokens
2017-01-16 10:35:39 +01:00
Miroslav Bajtoš
e17cc3d23a
Preserve current session when invalidating tokens
...
Fix User model to preserve the current session (provided via
"options.accessToken") when invalidating access tokens after a change
of email or password property.
2017-01-16 10:08:30 +01:00
Miroslav Bajtoš
24bb15233d
Clean up access-token-invalidation tests
2017-01-16 10:08:30 +01:00
Miroslav Bajtoš
3946462828
Merge pull request #3097 from strongloop/remove-context-api-doc
...
Update docs.json
2017-01-13 14:28:29 +01:00
Rand McKinney
9fec6e1615
Update docs.json
...
Remove files that are no longer used.
2017-01-12 14:25:38 -08:00
Simon Ho
d2e9e7ee77
Simplify issue template ( #3083 )
...
Favour form editing over going down a checklist. Also fix automatic 2
subtasks creation side effect from old issue template.
2017-01-11 17:04:19 -08:00
Miroslav Bajtoš
b86eac5cf6
Merge pull request #3080 from strongloop/feature/warn-on-injectOptionsFromRemoteContext
...
Warn about injectOptionsFromRemoteContext
2017-01-10 15:38:24 +01:00
Miroslav Bajtoš
3e2ac9217f
Warn about injectOptionsFromRemoteContext
...
The option injectOptionsFromRemoteContext was added to LoopBack 2.x only
and is not available in LoopBack 3.x (and newer).
When a model with this option is encountered, we are printing a warning
message now, to let the user know about this change between 2.x and 3.x.
2017-01-09 14:45:23 +01:00
Miroslav Bajtoš
3ed525f753
3.2.0
...
* Upgrade eslint-config to 7.x (Miroslav Bajtoš)
* Allow password reset request for users in realms (Bram Borggreve)
* Fix construction of sharedCtor remoting metadata (Miroslav Bajtoš)
* Add option disabling periodic change rectification (kobaska)
* Fix annotation for persistedModel.count (lschricke)
* Applied as reviewed by @flowersinthesand (박대선)
* Fix false emailVerified on user model update (박대선)
* Contextify DAO and relation methods (Miroslav Bajtoš)
* Implement new http arg mapping optionsFromRequest (Miroslav Bajtoš)
* Emit resetPasswordRequest event with options (Sergey Reus)
2017-01-09 13:00:18 +01:00
Miroslav Bajtoš
4e6f9b978a
Merge pull request #3075 from strongloop/upgrade-eslint
...
Upgrade eslint-config to 7.x
2017-01-06 12:54:58 +01:00
Miroslav Bajtoš
70eecfab70
Upgrade eslint-config to 7.x
2017-01-06 12:12:35 +01:00
David Cheung
12be94e0db
Merge pull request #2998 from fullcube/bb/password-reset-realms-3.x
...
Allow password reset request for users in realms (v3.x)
2017-01-05 12:34:23 -05:00
Bram Borggreve
cddfb9c77d
Allow password reset request for users in realms
2017-01-05 09:47:18 -05:00
Miroslav Bajtoš
298635dad1
Merge pull request #2992 from DA-14/feature/resetPasswordRequest
...
Emit resetPasswordRequest event with options
2017-01-05 15:33:22 +01:00
Miroslav Bajtoš
8a2c01b3d8
Merge pull request #3070 from strongloop/fix/sharedCtor-remoting
...
Fix construction of sharedCtor remoting metadata
2017-01-05 11:37:30 +01:00
Miroslav Bajtoš
f4b167698a
Merge pull request #3053 from yumenohosi/fix/email-verified
...
Fix false emailVerified on user model update
2017-01-05 11:02:54 +01:00
Miroslav Bajtoš
0a6740cc30
Fix construction of sharedCtor remoting metadata
...
Prevent the situation when we are configuring remoting metadata after
strong-remoting has already picked up data from our parent (base) model.
2017-01-05 10:24:04 +01:00
Miroslav Bajtoš
0d1f74e2cd
Merge pull request #3047 from strongloop/forward-port/avoid-change-cleanup
...
Add option disabling periodic change rectification
2017-01-04 16:39:44 +01:00
David Cheung
355e40d750
Merge pull request #3066 from lschricke/patch-1
...
Fix annotation for persistedModel.count
2017-01-04 10:06:06 -05:00
kobaska
e15a656714
Add option disabling periodic change rectification
...
When `Model.settings.changeCleanupInterval` is set to a negative value,
no periodic cleanup is performed at all.
2017-01-04 15:58:44 +01:00
lschricke
baa50518cf
Fix annotation for persistedModel.count
2017-01-03 20:09:42 -05:00
박대선
697614dd45
Applied as reviewed by @flowersinthesand
2016-12-23 14:47:08 +09:00
박대선
d9ae32429b
Fix false emailVerified on user model update
...
Yesterday, the loopback we are using in our system was upgraded
via npm, and since the upgrade, we noticed that every time
the user model updates, the emailVerified column would change to false.
I took a look and realized there might be an error in
https://github.com/strongloop/loopback/commit/eb640d8
The intent of the commit just mention is to make emailVerified false
when the email gets changed, but notice that ctx.data.email is null
on updates, so the condition is always met and emailVerified always
becomes false.
This commit fixes the issue just mentioned.
2016-12-23 14:04:44 +09:00
Miroslav Bajtoš
a21fca6089
Merge pull request #3023 from strongloop/feature/options-from-context-v2
...
Inject remoting context to options arg
2016-12-22 12:01:02 +01:00
Miroslav Bajtoš
60ea3e96bc
Contextify DAO and relation methods
...
Modify remoting metadata of data-access methods in PersistedModel
and relation method in Model and add an "options" argument to "accepts"
list.
2016-12-22 10:26:09 +01:00
Miroslav Bajtoš
4de3aa77e3
Implement new http arg mapping optionsFromRequest
...
Define a new Model method "createOptionsFromRemotingContext" that allows
models to define what "options" should be passed to methods invoked
via strong-remoting (e.g. REST).
Define a new http mapping `http: 'optionsFromRequest'` that invokes
`Model.createOptionsFromRemotingContext` to build the value from
remoting context.
This should provide enough infrastructure for components and
applications to implement their own ways of building the "options"
object.
2016-12-22 10:26:01 +01:00
Miroslav Bajtoš
668a9d0ed6
3.1.1
...
* Update package.json for LB3 release (Simon Ho)
* Invalidate AccessTokens on password change (Miroslav Bajtoš)
* Fix registration of operation hooks in User model (Miroslav Bajtoš)
* Remove "options.template" from Email payload (Miroslav Bajtoš)
* Upgrade eslint config and grunt-eslint to latest (Miroslav Bajtoš)
* Update paid support URL (siddhipai)
* Update paid support URL (Siddhi Pai)
* Remove duplicate warning in issue template (Siddhi Pai)
2016-12-21 16:05:58 +01:00
Miroslav Bajtoš
f71030f8c2
Merge pull request #3044 from strongloop/release/3.x
...
Prepare for 3.x GA
2016-12-21 10:52:06 +01:00
Simon Ho
92ab09338e
Update package.json for LB3 release
2016-12-21 00:54:07 -08:00
Miroslav Bajtoš
f27cd2ccfb
Merge pull request #3018 from strongloop/fix/session-expiry2
...
Invalidate AccessTokens on password change
2016-12-12 13:50:15 +01:00
Miroslav Bajtoš
29a17f39d5
Invalidate AccessTokens on password change
...
Invalidate all existing sessions (delete all access tokens)
after user's password was changed.
2016-12-12 13:30:53 +01:00
Sergey Reus
fa8bca8d6e
Emit resetPasswordRequest event with options
2016-12-09 18:14:32 +02:00
Miroslav Bajtoš
dac1295ad7
Merge pull request #3016 from strongloop/fix/repeated-user-hooks2
...
Fix registration of operation hooks in User model (part 2)
2016-12-09 15:06:02 +01:00
Miroslav Bajtoš
f476613ab1
Fix registration of operation hooks in User model
...
Follow-up for 4edce47
which moved only two out of three hooks.
2016-12-09 14:29:30 +01:00
Miroslav Bajtoš
57a053bbf2
Merge pull request #3014 from strongloop/fix/repeated-user-hooks
...
Fix registration of operation hooks in User model
2016-12-09 14:09:12 +01:00
Miroslav Bajtoš
4edce47b24
Fix registration of operation hooks in User model
...
Operation hooks are inherited by subclassed models, therefore they must
be registered outside of `Model.setup()` function.
This commit fixes this problem in the built-in User model.
There are not tests verifying this change, as writing a test would be
too cumbersome and not worth the cost IMO.
2016-12-09 13:16:42 +01:00
Miroslav Bajtoš
63beaa21fe
Merge pull request #3004 from strongloop/fix/email-template-in-transport
...
Remove "options.template" from Email payload
2016-12-07 10:53:04 +01:00
Miroslav Bajtoš
7f2cdc106c
Merge pull request #3002 from strongloop/eslint-es6
...
Upgrade eslint config and grunt-eslint to latest
2016-12-07 10:52:52 +01:00
Miroslav Bajtoš
5016703f21
Remove "options.template" from Email payload
...
Fix User.confirm to exclude "options.template" when sending the
confirmation email. Certain nodemailer transport plugins are rejecting
such requests.
2016-12-06 16:18:19 +01:00
Miroslav Bajtoš
acdfb432d0
Upgrade eslint config and grunt-eslint to latest
...
- disable ES6 because PhantomJS does not support it yet
- fix linter errors reported after the upgrade.
2016-12-06 16:05:13 +01:00
siddhipai
fab5bd4fc5
Update paid support URL
...
Update paid support URL
2016-12-05 12:38:05 -08:00
Siddhi Pai
e4cb2afdb7
Update paid support URL
2016-12-05 12:23:14 -08:00
Siddhi Pai
91970f975a
Remove duplicate warning in issue template
...
* First item is not polite enough
* Second item conveys the same message as the first item
2016-12-05 12:09:19 -08:00
Miroslav Bajtoš
3e1ae2d413
3.1.0
...
* Fix use-strict issue with connectors after merge (Loay)
* Fix connector naming in strict mode (ebarault)
* Add "returnOnlyRoleNames" option to Role.getRoles (Eric)
* Update translation files (Candy)
* Fix broken document for `upsertWithWhere` (Amir Jafarian)
* Fix js doc for deleteAll event (Candy)
* add allowArray to relations' create remoteMethod (David Cheung)
* Remove workaround for default value (Loay)
* Fix remote method example (Amir Jafarian)
* Remove `example/context` (Amir Jafarian)
* Turn on "no-unused-expressions" rule for eslint (Miroslav Bajtoš)
* Update eslint to loopback config v5 (Loay)
* Fix total calculation in example (Candy)
* make test individually runable (David Cheung)
* Add options to bulkUpdate (Kogulan Baskaran)
* Fix context within listByPrincipalType role method (codyolsen)
* Add Node v7 to Travis CI platforms (Miroslav Bajtoš)
* Drop support for Node v0.10 and v0.12 (Miroslav Bajtoš)
* Add templateFn option to User#verify() (Adrien Kiren)
* Require verification after email change (Loay)
* Update doc links (Candy)
* adding check of string for case insensitive emails (Dhaval Trivedi)
* Update test confirmation text in PR template (#2897 ) (Simon Ho)
* allow batch create for persisted models (David Cheung)
* Fix PR template to not link all PRs to #49 (#2887 ) (Miroslav Bajtoš)
* Need index on principalId for performance. (#2883 ) (Simon Ho)
* Remove redundant items in PR template (#2877 ) (Simon Ho)
* Refactor PR template based on feedback (#2865 ) (Simon Ho)
* Add pull request template (#2843 ) (Simon Ho)
* Update README.md (Rand McKinney)
* Reword ticking checkbox note in issue template (#2854 ) (Simon Ho)
* Add how to tick checkbox in issue template (#2851 ) (Simon Ho)
* Fix description of updateAll response (Miroslav Bajtoš)
* Allow tokens with eternal TTL (value -1) (Miroslav Bajtoš)
* Use GitHub issue templates (#2810 ) (Simon Ho)
* Update ja and nl translation files (Candy)
* Remove 3.0 DEVELOPING & RELEASE-NOTES (Miroslav Bajtoš)
* Fix support for remote hooks returning a Promise (Tim van der Staaij)
* Validate non-email property partial update (Loay)
* Update release notes (Amir Jafarian)
* Update translation files - round#2 (Candy)
* Add license text (Candy)
* Temporarily disable Karma tests on Windows CI (Miroslav Bajtoš)
2016-12-05 10:15:39 +01:00
Loay
a34f321d2b
Fix use-strict issue with connectors after merge
...
fixing use-strict issue with connectors after merge #2632
2016-11-30 14:36:51 -05:00
ebarault
94c786f2f7
Fix connector naming in strict mode
...
In strict mode, creating properties on strings is not allowed.
As a result, creating a new datasource fails with the following
error:
TypeError: Cannot create data source "db":
Cannot create property 'name' on string 'mongodb'
In this commit, we fix the code to assign the connector name only
if the connector is an object (not a string).
Add "returnOnlyRoleNames" option to Role.getRoles
Currently the return type of Role.getRoles() method is inconsistent:
role names are returned for smart roles and role ids are returned for
static roles (configured through user-role mapping).
This commit adds a new option to Role.getRoles() allowing the caller
to request role names to be returned for all types of roles.
2016-11-30 14:08:28 -05:00