mozilla/publish.webmaker.org

View on GitHub
api/modules/users/controller.js

Summary

Maintainability
A
1 hr
Test Coverage

Function login has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  login(request, reply) {
    if (request.payload.name !== request.auth.credentials.username) {
      return reply(
        Errors.generateErrorResponse(
          Boom.unauthorized(null, {
Severity: Minor
Found in api/modules/users/controller.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status