dwyl/hapi-login-example-postgres

View on GitHub
lib/handlers/register_handler.js

Summary

Maintainability
A
1 hr
Test Coverage

Function create_person has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function create_person (request, reply) {
  var email = help.escape(request.payload.email);
  var name = help.escape(request.payload.name);
  var password = help.escape(request.payload.password);
  var select = escape('SELECT * FROM people WHERE (email = %L)', email);
Severity: Minor
Found in lib/handlers/register_handler.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status