Skip to content

Commit

Permalink
ft #158028336 remove unnecessary lines of code
Browse files Browse the repository at this point in the history
  • Loading branch information
Andela Developer authored and Andela Developer committed Jun 8, 2018
1 parent 91d267e commit a4a8253
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion config/middlewares/validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const { check, validationResult } = require('express-validator/check');
exports.validateSignup = (req, res, next) => {
// Finds the validation errors in this request and wraps them in an object with handy functions
const errors = validationResult(req);
console.log(errors);
if (!errors.isEmpty()) {
return res.status(422).json({ errors: errors.array() });
}
Expand Down
1 change: 0 additions & 1 deletion public/js/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ angular.module('mean.system').controller('IndexController', [
$http.post('/api/auth/signup', $scope.user)
.then((response) => {
localStorage.setItem('token', response.data.token);
// $http.default.headers.common['x-access-token'] = response.data.token;
$location.path('/');
}, (error) => {
if(error.data.errors) {
Expand Down

0 comments on commit a4a8253

Please sign in to comment.