Skip to content

Node.js based forum software built for the modern web

Added additional parameters to user creation method (#5496)

husseinwalli3876a88252d2
diff --git a/src/user/create.js b/src/user/create.js
index 71034c1771..7d5e56f96f 100644
--- a/src/user/create.js
+++ b/src/user/create.js
@@ -28,10 +28,10 @@ module.exports = function (User) {
email: data.email || '',
joindate: timestamp,
lastonline: timestamp,
- picture: '',
+ picture: data.picture || '',
fullname: data.fullname || '',
- location: '',
- birthday: '',
+ location: data.location || '',
+ birthday: data.birthday || '',
website: '',
signature: '',
uploadedpicture: '',