add register

This commit is contained in:
ljw
2024-10-31 15:14:30 +08:00
parent 0ed40318cb
commit e2fda47cbb
12 changed files with 86 additions and 3 deletions

View File

@@ -103,7 +103,10 @@ func (ct *Login) LoginOptions(c *gin.Context) {
for _, v := range res.Oauths {
ops = append(ops, v.Op)
}
response.Success(c, ops)
response.Success(c, gin.H{
"ops": ops,
"register": global.Config.App.Register,
})
}
// OidcAuth