notduncansmith/summit

View on GitHub
lib/services/forgot_password.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function exports has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (app) {
  var coll = app.collection({
    name: 'ForgotPasswordToken',
    fields: {
      email: 'email',
Severity: Major
Found in lib/services/forgot_password.js - About 2 hrs to fix

    Function withToken has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          withToken: function (token) {
            return coll.get(token)
            .then(function (fpRecord) {
              var timestamp = moment(fpRecord.createdAt, moment.ISO_8601)
                , weekAgo = moment().add(1, 'weeks');
    Severity: Minor
    Found in lib/services/forgot_password.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status