modules/orionode/lib/user.js
function userJSON(user, options) {
	return {
		FullName: user.fullname,
		UserName: user.username,
		Location: api.join(options.usersRoot, user.username),
		Email: user.email,
		EmailConfirmed: emailConfirmed(user),
		HasPassword: true,
		OAuth: user.oauth || undefined,
		LastLoginTimestamp: user.login_timestamp ? user.login_timestamp.getTime() : 0,
		DiskUsageTimestamp: user.disk_usage_timestamp ? user.disk_usage_timestamp.getTime() : 0,
		DiskUsage: user.disk_usage || 0 ,
		jwt: user.jwt
	};
}
function userJSON(user, options) {
	return {
		FullName: user.fullname,
		UserName: user.username,
		Location: api.join(options.usersRoot, user.username),
		Email: user.email,
		EmailConfirmed: emailConfirmed(user),
		HasPassword: true,
		OAuth: user.oauth || undefined,
		LastLoginTimestamp: user.login_timestamp ? user.login_timestamp.getTime() : 0,
		DiskUsageTimestamp: user.disk_usage_timestamp ? user.disk_usage_timestamp.getTime() : 0,
		DiskUsage: user.disk_usage || 0 ,
		jwt: user.jwt
	};
}
function userJSON ( user , options ) { return { FullName : user . fullname , UserName : user . username , Location : api . join ( options . usersRoot , user . username ) , Email : user . email , EmailConfirmed : emailConfirmed ( user ) , HasPassword : true , OAuth : user . oauth || undefined , LastLoginTimestamp : user . login_timestamp ? user . login_timestamp . getTime ( ) : 0 , DiskUsageTimestamp : user . disk_usage_timestamp ? user . disk_usage_timestamp . getTime ( ) : 0 , DiskUsage : user . disk_usage || 0 , jwt : user . jwt } ; }
Write out the JSON for the given user metadata
@param {{?}} user The user to write JSON for
@param {{?}} options The map of server options
@returns {?} A new JSON object for the user
Write out the JSON for the given user metadata