mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-03 14:20:33 +01:00
Added additional parameters to user creation method (#5496)
Treating picture, location and birthday similar to data.email as optional parameters to be passed to the create a user
This commit is contained in:
committed by
psychobunny
parent
ff09d6e0dd
commit
3876a88252
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user