amisadmin / fastapi-user-auth

FastAPI-User-Auth is a simple and powerful FastAPI user RBAC authentication and authorization library. Based on FastAPI-Amis-Admin and provides a freely extensible visual management interface.
338 stars 43 forks source link

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

Open feixianghs opened 1 year ago

Sug2077 commented 1 year ago

image

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

image

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

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

feixianghs commented 1 year ago

谢谢,试了下是可以的

cic1988 commented 9 months ago

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