• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Feedback on QQ login issues

ChinaSouth

Chevereto Member
EN:
I have found an issue where QQ login will generate an error message because QQ login is a strong verification method. Adding a "/" with a "/" will cause the verification method to fail, and QQ will prompt that the callback domain does not pass. So I made modifications to three places so that there won't be any errors!
First place:/app/legacy/routes/connect.chp, line 53
//Before modification
'callback' => get_public_url('connect/' . $doing) . '/',
//After modification
'callback' => get_public_url('connect/' . $doing),
After making the changes, I found that there is still a "/" in the callback domain position of QQ in the dashboard/dashboard/settings/login providers. Therefore, I made a second modification
Second place:/content/legal/themes/page/views/dashboard/settings/loginproviders.chp, line 85
//Before modification
'%connectUrlValue%' => get_base_url('connect/' . $name . '/', true),
//After modification
'%connectUrlValue%' => get_base_url('connect/' . $name, true),
Third place:/app/legacy/routes/json. php line 1603
//Before modification
'callback' => get_public_url('connect/' . $disconnect) . '/',
//After modification
'callback' => get_public_url('connect/' . $disconnect),
After modifying these three areas, QQ login will no longer prompt callback domain exceptions.
I hope the official can fix this issue as soon as possible. Thanks!


中文:
我发现一个问题,就是QQ登录会报错,因为QQ登录是强校验方式,你这里多一个“/”如果带“/”就会导致校验方式不通过,QQ会提示回调域不通过。所以我对三个地方进行了修改,这样就不会报错了!
第一处:/app/legacy/routes/connect.php 第 53 行
// 改前
'callback' => get_public_url('connect/' . $doing) . '/',

// 改后
'callback' => get_public_url('connect/' . $doing),
改完发现在仪表盘内/dashboard/settings/login-providers发现QQ的回调域位置还是有“/”的,那我进行了二次修改
第二处:/content/legacy/themes/Peafowl/views/dashboard/settings/login-providers.php第85行
//改前
'%connectUrlValue%' => get_base_url('connect/' . $name . '/', true),
//改后
'%connectUrlValue%' => get_base_url('connect/' . $name, true),
第三处:/app/legacy/routes/json.php第1603行
//改前
'callback' => get_public_url('connect/' . $disconnect) . '/',
//改后
'callback' => get_public_url('connect/' . $disconnect),
修改了这三处,QQ登录就不会提示回调域异常了。
希望官方能尽快修复此问题。感谢!
 
Back
Top