diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-02-18 09:29:59 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-02-18 09:29:59 +0100 |
commit | ad4a8a1cca1049f600ebcdce9260c1021cd821a5 (patch) | |
tree | ca8ffba899b024d56d1bd7846f61aecae0821c82 /server/controllers/api/users.js | |
parent | 5d67f289df4a68e35ad7e0af3c601c7db0dc7586 (diff) | |
download | PeerTube-ad4a8a1cca1049f600ebcdce9260c1021cd821a5.tar.gz PeerTube-ad4a8a1cca1049f600ebcdce9260c1021cd821a5.tar.zst PeerTube-ad4a8a1cca1049f600ebcdce9260c1021cd821a5.zip |
Add email to users
Diffstat (limited to 'server/controllers/api/users.js')
-rw-r--r-- | server/controllers/api/users.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/api/users.js b/server/controllers/api/users.js index 6cd0e84f7..324c99b4c 100644 --- a/server/controllers/api/users.js +++ b/server/controllers/api/users.js | |||
@@ -61,6 +61,7 @@ function createUser (req, res, next) { | |||
61 | const user = db.User.build({ | 61 | const user = db.User.build({ |
62 | username: req.body.username, | 62 | username: req.body.username, |
63 | password: req.body.password, | 63 | password: req.body.password, |
64 | email: req.body.email, | ||
64 | role: constants.USER_ROLES.USER | 65 | role: constants.USER_ROLES.USER |
65 | }) | 66 | }) |
66 | 67 | ||