loopback/test
박대선 659e9ce09b Fix false emailVerified on user model update
We noticed that every time the user model updates, the emailVerified
column would change to false, even though the email was not changed
at all.

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.
2017-01-05 11:08:35 +01:00
..
e2e Backport separate error checking and done logic 2016-05-06 14:07:38 -07:00
fixtures Fix remoting metadata for "data" arguments 2016-09-07 12:59:01 +02:00
util Backport of #2565 2016-07-29 11:39:47 -04:00
access-control.integration.js Upgrade loopback-testing to the latest ^1.4 2016-09-12 13:21:07 +02:00
access-token.test.js Allow tokens with eternal TTL (value -1) 2016-10-12 12:30:33 +02:00
acl.test.js Update tests to use registry for model creation 2016-09-27 16:44:01 -04:00
app.test.js Update tests to use registry for model creation 2016-09-27 16:44:01 -04:00
change-stream.test.js Update tests to use registry for model creation 2016-09-27 16:44:01 -04:00
change.test.js Backport separate error checking and done logic 2016-05-06 14:07:38 -07:00
checkpoint.test.js Backport separate error checking and done logic 2016-05-06 14:07:38 -07:00
context-options.test.js Add new flag injectOptionsFromRemoteContext 2017-01-05 10:18:56 +01:00
data-source.test.js Expose upsertWithWhere 2016-09-07 12:41:56 -04:00
email.test.js Support 'alias' in mail transport config. 2016-07-05 10:48:24 -05:00
error-handler.test.js Update dependencies to their latest versions 2016-08-05 10:54:42 +02:00
geo-point.test.js update/insert copyright notices 2016-05-03 17:10:46 -07:00
hidden-properties.test.js Update dependencies to their latest versions 2016-08-05 10:54:42 +02:00
integration.test.js Update tests to use registry for model creation 2016-09-27 16:44:01 -04:00
karma.conf.js Update dependencies to their latest versions 2016-08-05 10:54:42 +02:00
key-value-model.test.js KeyValueModel: add API for listing keys 2016-08-18 13:34:29 +02:00
loopback.test.js common: add KeyValueModel 2016-08-10 15:30:15 +02:00
memory.test.js Backport separate error checking and done logic 2016-05-06 14:07:38 -07:00
model.application.test.js Backport separate error checking and done logic 2016-05-06 14:07:38 -07:00
model.test.js Implement new http arg mapping optionsFromRequest 2017-01-05 10:18:56 +01:00
registries.test.js Update tests to use registry for model creation 2016-09-27 16:44:01 -04:00
relations.integration.js Update tests to use registry for model creation 2016-09-27 16:44:01 -04:00
remote-connector.test.js Add new flag injectOptionsFromRemoteContext 2017-01-05 10:18:56 +01:00
remoting-coercion.test.js Update tests to use registry for model creation 2016-09-27 16:44:01 -04:00
remoting.integration.js Add new flag injectOptionsFromRemoteContext 2017-01-05 10:18:56 +01:00
replication.rest.test.js test: increase timeout to prevent CI failures 2016-08-08 16:09:08 +02:00
replication.test.js Add option disabling periodic change rectification 2016-12-21 15:39:08 +01:00
rest.middleware.test.js test: fix timeout in rest.middleware.test 2016-08-05 11:33:57 +02:00
role.test.js Add "returnOnlyRoleNames" option to Role.getRoles 2016-11-30 17:10:41 +01:00
support.js update/insert copyright notices 2016-05-03 17:10:46 -07:00
user.integration.js test: use local registry in test fixtures 2016-07-27 15:06:32 +02:00
user.test.js Fix false emailVerified on user model update 2017-01-05 11:08:35 +01:00