# 通过 REST-API 创建用户似乎无法工作

**URL:** <https://meta.discourse.org/t/create-user-via-rest-api-does-not-seem-to-be-working/355112>\
**Category:** Support\
**Created:** [2025年二月28日 22:16 UTC](https://meta.discourse.org/t/create-user-via-rest-api-does-not-seem-to-be-working/355112 "2025-02-28T22:16:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![hat\_trick](https://avatars.discourse-cdn.com/v4/letter/h/898d66/32.png) [@hat\_trick](https://meta.discourse.org/u/hat_trick)\
**Post date:** [2025年二月28日 22:16 UTC](https://meta.discourse.org/t/create-user-via-rest-api-does-not-seem-to-be-working/355112/1 "2025-02-28T22:16:29Z")

</div>

您好，

我使用 REST API 创建了一个新用户。

但我无法使用新用户的凭据登录。当我在 users 表中搜索时，找不到该用户帐户。

为了排除故障，我运行了以下 CURL 命令。

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/2/4/324f96a2206ecb864be71225c3887204c981a809.png)

我还尝试在 CURL 命令中使用 JSON 负载。

两次我得到的结果都一样：我无法使用新用户的凭据登录，并且在新用户的 users 表中找不到该用户。

有什么想法吗？

谢谢

---

_[View the full topic](https://meta.discourse.org/t/create-user-via-rest-api-does-not-seem-to-be-working/355112)._
