MCPcopy Create free account
hub / github.com/Illusionna/LocalTransfer / AuthorizeUser

Function AuthorizeUser

utils.go:78–87  ·  view source on GitHub ↗

用户若登录成功, 则授权.

(user string)

Source from the content-addressed store, hash-verified

76
77// 用户若登录成功, 则授权.
78func AuthorizeUser(user string) bool {
79 USER_LOCK_MU.Lock()
80 defer USER_LOCK_MU.Unlock()
81 if _, ok := USER_LOCK[user]; ok {
82 return USER_LOCK[user]
83 } else {
84 USER_LOCK[user] = (LOGIN_PASSWORD != "")
85 return USER_LOCK[user]
86 }
87}
88
89
90// 授权文件传输服务中间件.

Callers 7

IndexHandlerFunction · 0.85
UIHandlerFunction · 0.85
APIDocsHandlerFunction · 0.85
FileInfoHandlerFunction · 0.85
BatchDownloadHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected