mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
refactor: oauth2登录重构
This commit is contained in:
@@ -22,11 +22,6 @@ func InitAccountRouter(router *gin.RouterGroup) {
|
||||
addAccountPermission := req.NewPermission("account:add")
|
||||
|
||||
reqs := [...]*req.Conf{
|
||||
// 用户登录
|
||||
req.NewPost("/login", a.Login).Log(req.NewLogSave("用户登录")).DontNeedToken(),
|
||||
|
||||
// otp双因素校验
|
||||
req.NewPost("/otp-verify", a.OtpVerify).DontNeedToken(),
|
||||
|
||||
// 获取个人账号的权限资源信息
|
||||
req.NewGet("/permissions", a.GetPermissions),
|
||||
|
||||
Reference in New Issue
Block a user