博主头像
mxd's Blog

"The quieter you become,the more you are able to hear."

Discuz UCenter 后台验证码全部变成CCCC

事情是这样的,我的网站套了一个CloudFlare的CDN和添加了对IPV6的支持。然后就变成了下图这样。

1be3cab1d31b5a71e1e417098a25e592.png
1be3cab1d31b5a71e1e417098a25e592.png

我通过浏览器自带的工具得到:我的网页每刷新一次我的IP貌似就会变动一下,导致discuz的ucenter错误返回验证码。


网上有个帖子,但是这个帖子已经是2012年的了。

image.png
image.png

自己转念一想,论坛可以关闭验证码,UCenter是不是也可以呢,一查询找到了解决方法,一下子就可以登录了、那么怎么关闭UCenter验证码呢?很简单!改文件!进入FTP,找到文件:uc_server/control/admin/user.php ,搜索:

if(!seccode::seccode_check($seccodehidden, $seccode))

修改为:

if(seccode::seccode_check($seccodehidden, $seccode))

然后好像验证码没关掉但是正常了

这个原理我真的不知道是啥……

有疑问可以在下面留言,我会帮助你!

Discuz UCenter 后台验证码全部变成CCCC
https://blog.mxdyeah.top/mxdyeah_blog_post/15.html
本文作者 mxdyeah
发布时间 2023-08-12
许可协议 CC BY-NC-SA 4.0
已有 4 条评论
  1. 评论头像

    这样搞直接没反应了

    1 December 15th, 2024 at 01:42 am   Windows 10/11 x64 Edition(Windows 10/11 x64 Edition) / Google Chrome 131.0.0.0(Google Chrome 131.0.0.0) 回复
    1. 评论头像

      我这个版本比较老,最新的可能不适用了,很遗憾没能帮到您!能提供详细信息么?|´・ω・)ノ

      mxdyeah 博主 December 15th, 2024 at 01:54 am   GNU/Linux x64(GNU/Linux x64) / Google Chrome 129.0.0.0(Google Chrome 129.0.0.0) 回复
      1. 评论头像

        我搞好了,但是你这个评论好像不能发代码

        1 December 15th, 2024 at 04:57 pm   Windows 10/11 x64 Edition(Windows 10/11 x64 Edition) / Google Chrome 131.0.0.0(Google Chrome 131.0.0.0) 回复
        1. 评论头像

          markdown勾选,然后用markdown格式回复即可

          mxdyeah 博主 December 21st, 2024 at 03:50 pm   GNU/Linux x64(GNU/Linux x64) / Google Chrome 129.0.0.0(Google Chrome 129.0.0.0) 回复
发表新评论