全球主机交流论坛

标题: Chevereto升级到v4后用户无法登录 [打印本页]

作者: yhsiao    时间: 2022-12-3 00:30
标题: Chevereto升级到v4后用户无法登录
Chevereto升级到v4后用户无法登录,大家有遇到这个问题的吗?
作者: aRNoLD    时间: 2022-12-3 00:49
也不给个具体的症状,神医蔡也无法整治。

如果是密码错误,就找回密码即可。
作者: tomcb    时间: 2022-12-3 00:59
密码错误吗?
app/env.php是不是写了这个CHEVERETO_ENCRYPTION_KEY,有的话注释掉这行试试。

作者: yhsiao    时间: 2022-12-3 01:04
tomcb 发表于 2022-12-3 00:59
密码错误吗?
app/env.php是不是写了这个CHEVERETO_ENCRYPTION_KEY,有的话注释掉这行试试。
...

不是密码错误,登录后重新引导到主页,仍然是未登录状态。
env.php只添加了数据库信息:
<?php
return [
'CHEVERETO_DB_NAME' => 'chevereto',
'CHEVERETO_DB_PASS' => 'user_database_password',
'CHEVERETO_DB_PORT' => '3306',
'CHEVERETO_DB_TABLE_PREFIX' => 'chv_',
'CHEVERETO_DB_USER' => 'user_database',
];
作者: toot    时间: 2022-12-3 01:06
伪静态换了没      
作者: yhsiao    时间: 2022-12-3 01:08
toot 发表于 2022-12-3 01:06
伪静态换了没

没换,伪静态换成啥了?
作者: tomcb    时间: 2022-12-3 01:09
yhsiao 发表于 2022-12-3 01:04
不是密码错误,登录后重新引导到主页,仍然是未登录状态。
env.php只添加了数据库信息:
...

伪静态设置呢?
作者: yhsiao    时间: 2022-12-3 01:11
tomcb 发表于 2022-12-3 01:09
伪静态设置呢?

伪静态还是用了v3的:
    #imagehub: Disable access to sensitive files
    location ~* /(app|content|lib)/.*\.(po|php|lock|sql)$ {
    deny all;
    }
    #imagehub: CORS headers
    location ~* /.*\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js) {
    add_header Access-Control-Allow-Origin "*";
    }
    #imagehub: Upload path for image content only and set 404 replacement
    location ^~ /images/ {
    location ~* (jpe?g|png|gif|webp) {
        log_not_found off;
        error_page 404  /content/images/system/default/404.jpg;
    }
    return 403;
    }
    #imagehub: Pretty URLs
    location / {
    index index.php;
    try_files $uri $uri/ /index.php?$query_string;
    }
作者: toot    时间: 2022-12-3 01:12
yhsiao 发表于 2022-12-3 01:11
伪静态还是用了v3的:
    #imagehub: Disable access to sensitive files
    location ~* /(app|conten ...

那你搞毛线……………
作者: tomcb    时间: 2022-12-3 01:14
yhsiao 发表于 2022-12-3 01:11
伪静态还是用了v3的:
    #imagehub: Disable access to sensitive files
    location ~* /(app|conten ...

https://v4-docs.chevereto.com/application/stack/web-server.html#nginx
换这试试
作者: yhsiao    时间: 2022-12-3 01:15
tomcb 发表于 2022-12-3 01:14
https://v4-docs.chevereto.com/application/stack/web-server.html#nginx
换这试试

好的,我试试。
作者: tomcb    时间: 2022-12-3 01:16
yhsiao 发表于 2022-12-3 01:15
好的,我试试。

不能照抄,路径那些得改改
作者: yhsiao    时间: 2022-12-3 01:27
tomcb 发表于 2022-12-3 01:16
不能照抄,路径那些得改改

换了伪静态,登录后还是导向到首页,显示未登录状态。
作者: yhsiao    时间: 2022-12-3 01:47
tomcb 发表于 2022-12-3 01:16
不能照抄,路径那些得改改

用户重置密码后可以登录。怎么批量解决这个问题
作者: yhsiao    时间: 2022-12-3 02:03
yhsiao 发表于 2022-12-3 01:47
用户重置密码后可以登录。怎么批量解决这个问题

还是不行。直接访问反代的后端,可以正常登录。通过反代进行访问就不行。
作者: yhsiao    时间: 2022-12-3 10:56
大佬们指点一下啊。
作者: tomcb    时间: 2022-12-4 12:02
yhsiao 发表于 2022-12-3 02:03
还是不行。直接访问反代的后端,可以正常登录。通过反代进行访问就不行。 ...

那说明源站并没有问题,检查反代的设置呗。




欢迎光临 全球主机交流论坛 (https://hostloc-workers.ikyomon.com/) Powered by Discuz! X3.4