SHARE
TWEET

Untitled

a guest Sep 20th, 2016 221 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top