WRidder/react-spa

View on GitHub
server/src/database/models/user.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createUser has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  createUser: function(username, password) {
    var deferred = q.defer();

    // Check if user already exists
    if (this.getByUsername(username)) {
Severity: Minor
Found in server/src/database/models/user.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status