Festinger
(Festinger )
2024 年3 月 20 日 17:35
1
大家好,
我尝试通过 SSH 删除 SSO,但它不起作用。
我尝试使用此命令:
Official Single-Sign-On for Discourse (sso):
What if you check it by mistake?
If you check enable_sso by mistake and need to revert to the original state and no longer have access to the admin panel, visit /users/admin-login and follow the instructions.
OR, from server console run:
cd /var/discourse
./launcher enter app
rails c
irb > SiteSetting.enable_sso = false
irb > SiteSetting.enable_local_logins = true
irb > exit
exit
参考:
As said in the first post of the official topic:
root@ser3:~# cd /var/discourse
root@ser3:/var/discourse# ./launcher enter app
x86_64 arch detected.
root@ser3-app:/var/www/discourse# rails c
[1] pry(main)> irb > SiteSetting.enable_sso = false
NameError: undefined local variable or method `irb' for main:Object
from (pry):1:in `__pry__'
[2] pry(main)>
不幸的是,通过 admin-login 登录不起作用,因为我们的电子邮件发送有问题。
有人能指导我应该使用哪些命令通过 SSH 禁用 SSO 吗?
感谢您的任何帮助。谢谢!
我不认为你应该包含 irb。不过那也可能是一个旧的设置名称。你使用的是什么 SSO?
Festinger
(Festinger )
2024 年3 月 20 日 17:53
3
感谢您的回复 @JammyDodger
我们之前使用的是 WP Discourse SSO——但我们最近从 XenForo 切换回了 Discourse,旧的 SSO 已不再连接。
希望有人能对此有所启发。
1 个赞
如果它是 DiscourseConnect ,那么我认为它将是:
SiteSetting.enable_discourse_connect = false
以及启用本地登录:
SiteSetting.enable_local_logins = true
3 个赞
system
(system)
关闭
2024 年4 月 19 日 18:14
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.