MCPcopy Index your code
hub / github.com/syncthing/syncthing / authStatic

Function authStatic

lib/api/api_auth.go:238–240  ·  view source on GitHub ↗
(username string, password string, guiCfg config.GUIConfiguration)

Source from the content-addressed store, hash-verified

236}
237
238func authStatic(username string, password string, guiCfg config.GUIConfiguration) bool {
239 return guiCfg.CompareHashedPassword(password) == nil && username == guiCfg.User
240}
241
242func authLDAP(username string, password string, cfg config.LDAPConfiguration) bool {
243 address := cfg.Address

Callers 4

TestStaticAuthOKFunction · 0.85
authFunction · 0.85

Calls 1

CompareHashedPasswordMethod · 0.80

Tested by 3

TestStaticAuthOKFunction · 0.68