Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何定制登陆成功后跳转的url,当前是跳转到首页 #15

Open
feixianghs opened this issue Jan 12, 2023 · 4 comments
Open

Comments

@feixianghs
Copy link

No description provided.

@Sug2077
Copy link
Contributor

Sug2077 commented Jan 12, 2023

image

  1. 修改无权限错误时重定向的网址

@Sug2077
Copy link
Contributor

Sug2077 commented Jan 12, 2023

image
2. 或者改登录成功后的重定向地址 UserLoginFormAdmin.route_page

都需要继承重写,你看改哪里方便吧

@feixianghs
Copy link
Author

feixianghs commented Jan 12, 2023

谢谢,试了下是可以的

@cic1988
Copy link

cic1988 commented Jan 4, 2024

你好 @Sug2077 如果我想改成第三方登录然后再跳转回来的话,大概的修改方法是?我看了一下get_form方法里面的两个sign in 和sign up 是固定的。 如果要改第三方登录是不是要重写 UserLoginFormAdmin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants