loopback/test
박대선 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
..
e2e Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
fixtures Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
helpers Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
util Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
access-control.integration.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
access-token.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
acl.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
app.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
change-stream.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
change.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
checkpoint.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
context-options.test.js Contextify DAO and relation methods 2016-12-22 10:26:09 +01:00
data-source.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
email.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
error-handler.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
geo-point.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
hidden-properties.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
integration.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
karma.conf.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
key-value-model.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
loopback.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
memory.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
model.application.test.js Upgrade eslint config and grunt-eslint to latest 2016-12-06 16:05:13 +01:00
model.test.js Implement new http arg mapping optionsFromRequest 2016-12-22 10:26:01 +01:00
registries.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
relations.integration.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
remote-connector.test.js Contextify DAO and relation methods 2016-12-22 10:26:09 +01:00
remoting-coercion.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
remoting.integration.js Contextify DAO and relation methods 2016-12-22 10:26:09 +01:00
replication.rest.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
replication.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
rest.middleware.test.js Upgrade eslint config and grunt-eslint to latest 2016-12-06 16:05:13 +01:00
role.test.js Add "returnOnlyRoleNames" option to Role.getRoles 2016-11-30 16:46:59 +01:00
user.integration.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
user.test.js Fix false emailVerified on user model update 2016-12-23 14:04:44 +09:00