Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否增加一个新注册用户的待激活状态 #7053

Open
3 tasks done
B3000Kcn opened this issue Nov 19, 2024 · 3 comments
Open
3 tasks done

能否增加一个新注册用户的待激活状态 #7053

B3000Kcn opened this issue Nov 19, 2024 · 3 comments
Labels
area/core Issues or PRs related to the Halo Core kind/feature Categorizes issue or PR as related to a new feature.

Comments

@B3000Kcn
Copy link

前置条件

  • 已经在 Issues 列表中搜索了相关问题。
  • 这是和 Halo 相关的特性,如果是非项目本身的问题,建议在 Discussions 提交。
  • 如果是插件和主题特性建议,请在对应的插件和主题仓库提交。

你当前使用的版本

2.20.9

描述一下此特性

我想开放注册,但不希望随便什么人都能够注册进来,所以就想halo能不能做一个像openwebui那样的新用户待激活状态?
Image
Image
Image

附加信息

No response

@B3000Kcn
Copy link
Author

B3000Kcn commented Nov 19, 2024

最好还能加一个webhook提醒新用户注册
Image
Image

@JohnNiang
Copy link
Member

Hi @B3000Kcn , thank you for reaching out here!

/kind feature
/area core

目前倒是可以考虑直接禁用新注册用户来实现这一目标。

另外 Halo 已经默认提供 run.halo.app.core.user.service.UserPostCreatingHandler 扩展点,可以实现 webhook 功能。

@f2c-ci-robot f2c-ci-robot bot added kind/feature Categorizes issue or PR as related to a new feature. area/core Issues or PRs related to the Halo Core labels Nov 20, 2024
@guqing
Copy link
Member

guqing commented Nov 21, 2024

插件实现 UserPostCreatingHandler 然后将用户的 spec.disabled 设置为 false 然后发送一个通知给用户等待管理员同意,然后在通知一下管理员修改用户的 spec.disabled 状态,目前用户管理貌似没有提供这个状态的修改可能得插件提供,所以这个功能目前这个功能应该可以通过插件实现,3.x 可能会考虑增加这样的设置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Issues or PRs related to the Halo Core kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants