• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

strongloop / loopback / 5730
90%
master: 90%

Build:
Build:
LAST BUILD BRANCH: chore/update-lts
DEFAULT BRANCH: master
Ran 26 Apr 2017 05:09PM UTC
Jobs 3
Files 35
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5730

push

travis-ci

ebarault
Remote method /user/:id/verify

This commit adds:
- user.prototype.verify(verifyOptions, options, cb)
- remote method /user/:id/verify
- User.getVerifyOptions()

The remote method can be used to replay the sending of a user
identity/email verification message.

`getVerifyOptions()` can be fully customized programmatically
or partially customized using user model's `.settings.verifyOptions`

`getVerifyOptions()` is called under the hood when calling the
/user/:id/verify remote method

`getVerifyOptions()` can also be used to ease the building
of identity verifyOptions:

```js
var verifyOptions = {
  type: 'email',
  from: 'noreply@example.com'
  template: 'verify.ejs',
  redirect: '/',
  generateVerificationToken: function (user, options, cb) {
    cb('random-token');
  }
};

user.verify(verifyOptions);
```

NOTE: the `User.login()` has been modified to return the userId when
failing due to unverified identity/email. This userId can then be used
to call the /user/:id/verify remote method.

1755 of 2206 branches covered (79.56%)

6 of 6 new or added lines in 1 file covered. (100.0%)

3214 of 3585 relevant lines covered (89.65%)

6317.41 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
20
100.0
common/models/user.js
Jobs
ID Job ID Ran Files Coverage
1 5730.1 26 Apr 2017 05:12PM UTC 0
89.65
Travis Job 5730.1
2 5730.2 26 Apr 2017 05:09PM UTC 0
89.65
Travis Job 5730.2
3 5730.3 26 Apr 2017 05:09PM UTC 0
89.65
Travis Job 5730.3
Source Files on build 5730
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5730
  • b9fbf51b on github
  • Prev Build on feature/enable-email-verification-replay (#5728)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc