Chevereto升级到v4后用户无法登录

44次阅读

共计 1771 个字符,预计需要花费 5 分钟才能阅读完成。

Chevereto 升级到 v4 后用户无法登录,大家有遇到这个问题的吗?

也不给个具体的症状,神医蔡也无法整治。
如果是密码错误,就找回密码即可。密码错误吗?
app/env.php 是不是写了这个 CHEVERETO_ENCRYPTION_KEY,有的话注释掉这行试试。

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

不是密码错误,登录后重新引导到主页,仍然是未登录状态。
env.php 只添加了数据库信息:
<?php
return <[br />‘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:04
不是密码错误,登录后重新引导到主页,仍然是未登录状态。
env.php 只添加了数据库信息:

伪静态设置呢?

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;
}

yhsiao 发表于 2022-12-3 01:11
伪静态还是用了 v3 的:
#imagehub: Disable access to sensitive files
location ~* /(app|conten …

那你搞毛线……………

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
换这试试

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

好的,我试试。

yhsiao 发表于 2022-12-3 01:15
好的,我试试。

不能照抄,路径那些得改改

tomcb 发表于 2022-12-3 01:16
不能照抄,路径那些得改改

换了伪静态,登录后还是导向到首页,显示未登录状态。

tomcb 发表于 2022-12-3 01:16
不能照抄,路径那些得改改

用户重置密码后可以登录。怎么批量解决这个问题

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

还是不行。直接访问反代的后端,可以正常登录。通过反代进行访问就不行。大佬们指点一下啊。

正文完
 0