2 Commits

Author SHA1 Message Date
alu 1bcbed6828 minor code formatting to login.go 2025-05-13 17:35:54 +00:00
alu 31bfa79e66 update wfajs module 2025-05-13 17:35:35 +00:00
3 changed files with 14 additions and 13 deletions
+12 -12
View File
@@ -9,6 +9,18 @@ import (
"github.com/go-viper/mapstructure/v2"
)
// used when requesting GET /access/domains
type GetRealmsBody struct {
Data []Realm `json:"data"`
}
// stores each realm's data
type Realm struct {
Default int `json:"default"`
Realm string `json:"realm"`
Comment string `json:"comment"`
}
func GetLoginRealms() ([]Realm, error) {
realms := []Realm{}
@@ -37,18 +49,6 @@ func GetLoginRealms() ([]Realm, error) {
return realms, nil
}
// used when requesting GET /access/domains
type GetRealmsBody struct {
Data []Realm `json:"data"`
}
// stores each realm's data
type Realm struct {
Default int `json:"default"`
Realm string `json:"realm"`
Comment string `json:"comment"`
}
func HandleGETLogin(c *gin.Context) {
realms, err := GetLoginRealms()
if err != nil {
+2 -1
View File
File diff suppressed because one or more lines are too long
Binary file not shown.