rwwarren/door-lock

View on GitHub
web/src/inc/LoginPage.js

Summary

Maintainability
A
1 hr
Test Coverage

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

  login: function() {
    console.log("login attempt");
    var username = this.refs.username.getDOMNode().value.trim();
    var password = this.refs.password.getDOMNode().value.trim();
    var token = this.refs.token.getDOMNode().value.trim();
Severity: Minor
Found in web/src/inc/LoginPage.js - About 1 hr to fix

    Parsing error: Unexpected token <
    Open

          <div className="loginpage">
    Severity: Minor
    Found in web/src/inc/LoginPage.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status