feat: 支持作为module引用
This commit is contained in:
@@ -22,17 +22,3 @@ type Config struct {
|
||||
Meta LoginMeta `json:"meta"`
|
||||
Settings Settings `json:"settings"`
|
||||
}
|
||||
|
||||
func (a *Config) Generate() *LoginInfo {
|
||||
return &LoginInfo{
|
||||
UrlLoginPage: "http://" + a.Form.Domain + "/srun_portal_success",
|
||||
UrlGetChallengeApi: "http://" + a.Form.Domain + "/cgi-bin/get_challenge",
|
||||
UrlLoginApi: "http://" + a.Form.Domain + "/cgi-bin/srun_portal",
|
||||
UrlCheckApi: "http://" + a.Form.Domain + "/cgi-bin/rad_user_info",
|
||||
Meta: &a.Meta,
|
||||
Form: &LoginForm{
|
||||
UserName: a.Form.UserName + "@" + a.Form.UserType,
|
||||
PassWord: a.Form.PassWord,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user