gpt4 book ai didi

python - 跳过 Django Allauth "You are about to sign in using a third party account from Google"页面

转载 作者:行者123 更新时间:2023-12-05 01:04:22 26 4
gpt4 key购买 nike

当用户点击Login With Google时,如何跳过该页面并自动登录用户。 enter image description here

最佳答案

添加form而不是添加 anchor 标记,它将直接登录用户

<form action="{% provider_login_url 'google' %}" method="post">
{% csrf_token %}
<button type="submit">SIGN IN WITH GOOGLE</button>
</form>

关于python - 跳过 Django Allauth "You are about to sign in using a third party account from Google"页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72162359/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com