syntheticore/declaire

View on GitHub
src/serverAuth.js

Summary

Maintainability
A
1 hr
Test Coverage

Function serve has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  serve: function(expressApp, db) {
    expressApp.post('/login', function(req, res) {
      var users = db.collection('users');
      users.findOne({_username: req.body.username}, function(err, user) {
        if(!user || user._hash != sha256(req.body.password)) {
Severity: Minor
Found in src/serverAuth.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status