Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to modify AuthController.js? #8

Open
criativabrasilia opened this issue May 17, 2018 · 0 comments
Open

How to modify AuthController.js? #8

criativabrasilia opened this issue May 17, 2018 · 0 comments

Comments

@criativabrasilia
Copy link

I need to change some things to fit my project, however I can not do it with lodash

Not Working:
`var _ = require('lodash');
var _super = require('sails-hook-jwt-auth/api/controllers/AuthController');

_.merge(exports, _super);
_.merge(exports, {
signup: function (req, res) {
var newUser = {
usuario: req.body.usuario,
nivel: req.body.nivel,
email: req.body.email,
password: req.body.password
};
},

});`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant