_User.getUser()
Function to get the details of the current logged in user.
Example Usage
{% set userDetails = _User.getUser() %}
Response Example
{
"id":"1",
"guid":"22dd6cb6-5611-49ad-bf90-841dab7de87e",
"username":"admin",
"firstname":"Rohit",
"lastname":"Gupta",
"email":"[email protected]",
"bio":"I am a software developer",
"profileMedia":{
"id":"mt0jr5y3xvvm6yxgjpor",
"cloudName":"cognitives",
"path":"http://res.cloudinary.com/cognitives/image/upload/v1479377416/mt0jr5y3xvvm6yxgjpor.jpg"
}
}
Response Description
Attribute | Description |
---|---|
id | User ID of the user |
guid | GUID of the user |
username | Username |
firstname | First name |
lastname | Last name |
Email of the user | |
bio | Profile description of the user |
profileMedia | Profile image of the user |
Profile Image
Attribute | Description |
---|---|
id | Cloudinary Cloud ID of the image |
cloudName | Cloudinary Cloud name |
path | Cloudinary Cloud path of the image |
Updated about 5 years ago