Jump to content

Featured Replies

Posted

Hello, I am trying to update a users email and password through the REST API but it doesn't work.

this is the curl request.

curl -X POST https://www.thecrimsonmarket.com/hub/api/core/members/294 \
-H "Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=" \
-H "Content-Type: application/json" \
-d '{
"email": "test@hotmail.com",
"password": "$2b$09$OsIVKo00/oiy1G6dNDiKmOapb5L/Yp7l16LbCQEhqkeg.S.GP0AKK",
}'

Here is the response

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1389 100 1273 100 116 8430 768 --:--:-- --:--:-- --:--:-- 9198{
"id": 294,
"name": "LilithMommy#3454",
"title": null,
"timeZone": "Australia\/Sydney",
"formattedName": "LilithMommy#3454",
"primaryGroup": {
"id": 3,
"name": "Members",
"formattedName": "Members"
},
"secondaryGroups": [],
"email": "49a4d04189104e05a6f6c1bc8c14b2e5@example.com",
"joined": "2025-01-30T11:13:08Z",
"registrationIpAddress": "127.0.0.1",
"warningPoints": 0,
"reputationPoints": 0,
"photoUrl": "https:\/\/www.thecrimsonmarket.com\/hub\/uploads\/monthly_2025_02\/LM_profilePic1-min.png.2eb0d6105f3df77730791ae87bc79da7.png",
"photoUrlIsDefault": false,
"coverPhotoUrl": "",
"profileUrl": "https:\/\/www.thecrimsonmarket.com\/hub\/profile\/294-lilithmommy3454\/",
"validating": false,
"posts": 2,
"lastActivity": "2025-02-28T06:03:20Z",
"lastVisit": "2025-02-28T05:48:27Z",
"lastPost": "2025-02-09T02:40:28Z",
"birthday": null,
"profileViews": 58,
"customFields": [],
"rank": {
"id": 3,
"name": "Newbie",
"icon": "https:\/\/www.thecrimsonmarket.com\/hub\/uploads\/monthly_2024_11\/1_Newbie.svg",
"points": 0
},
"achievements_points": 20,
"allowAdminEmails": false,
"completed": tru
}

I don't see any errors in the logs, it gives me a 200, the email and password remain unchanged, what am I doing wrong?

Thanks in advance.



  • Author

I'm also wondering if there is any reason a users name should not contain a #

Recently Browsing 0

  • No registered users viewing this page.