Advertisement
Guest User

Untitled

a guest
Sep 20th, 2016
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. module.exports = {
  2. USERNAME: 'username',
  3. PASSWORD: 'password'
  4. };
  5.  
  6. register: function (request, response) {
  7. var user = {}
  8. user[constant.USERNAME] = request.body[constant.USERNAME]
  9. user[constant.PASSWORD] = request.body[constant.PASSWORD]
  10. // do anything with user object..
  11. }
  12.  
  13. register: function(request, response) {
  14. var user = {
  15. username: request.body.username,
  16. password: request.body.password
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement