tieme-ndo/backend

View on GitHub
controllers/user/register.js

Summary

Maintainability
A
1 hr
Test Coverage

Function register has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const register = async (req, res, next) => {
  try {
    const userDetails = req.body;

    const salt = bcrypt.genSaltSync(10);
Severity: Minor
Found in controllers/user/register.js - About 1 hr to fix

    Parsing error: Invalid ecmaVersion.
    Open

    const bcrypt = require('bcrypt');
    Severity: Minor
    Found in controllers/user/register.js by eslint

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

    There are no issues that match your filters.

    Category
    Status