Download server/utils.go from lin7zhi/OpenList: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/spaces/lin7zhi/OpenList/resolve/main/server/utils.go
- Command line
-
hf download hf://spaces/lin7zhi/OpenList/server/utils.go
-
curl -L -o utils.go https://huggingface.co/spaces/lin7zhi/OpenList/resolve/main/server/utils.go
323 Bytes
| package server | |
| import ( | |
| "github.com/OpenListTeam/OpenList/v4/internal/model" | |
| "github.com/OpenListTeam/OpenList/v4/server/common" | |
| ) | |
| func tryLdapLoginAndRegister(user, pass string) (*model.User, error) { | |
| err := common.HandleLdapLogin(user, pass) | |
| if err != nil { | |
| return nil, err | |
| } | |
| return common.LdapRegister(user) | |
| } | |