# 无需登录 Discourse 即可创建 Connection 和 Discourse 账户

**URL:** <https://meta.discourse.org/t/connection-and-discourse-account-creation-without-going-on-discourse/242812>\
**Category:** SSO\
**Created:** [2022 年10 月 24 日 22:53 UTC](https://meta.discourse.org/t/connection-and-discourse-account-creation-without-going-on-discourse/242812 "2022-10-24T22:53:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![loukmane226](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@loukmane226](https://meta.discourse.org/u/loukmane226)\
发布日期： [2022 年10 月 25 日 12:06 UTC](https://meta.discourse.org/t/connection-and-discourse-account-creation-without-going-on-discourse/242812/3 "2022-10-25T12:06:00Z")

</div>

嘿 @Stephen

感谢您的回复。我看到了解决方案，但我不知道如何使用。

您能给我一个实际的例子吗？  
我需要做的是：

1. 用户访问我的网站“[mysite.com](http://mysite.com)”。
2. 通过点击访问用户区的链接，一个脚本将检查会话中用户是否已登录。如果已登录，他将可以访问用户区。如果未登录，将显示登录表单，他将输入电子邮件地址和密码。
3. 这些信息将用于验证用户是否在我的 discourse 中注册。如果是，discourse 将返回用户信息。
4. 如果用户未在 discourse 中注册，他将能够输入信息进行注册。

这就是我想要做的，但我不知道从哪里开始。您能帮帮我吗？

谢谢

---

_[View the full topic](https://meta.discourse.org/t/connection-and-discourse-account-creation-without-going-on-discourse/242812)._
