MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / SetPassword

Method SetPassword

internal/users/store.go:101–101  ·  view source on GitHub ↗

SetPassword 设置门户密码(bcrypt hash),传空字符串表示清除密码。

(userID, hash string)

Source from the content-addressed store, hash-verified

99 SetCredentials(userID, uuid, secret string) error
100 // SetPassword 设置门户密码(bcrypt hash),传空字符串表示清除密码。
101 SetPassword(userID, hash string) error
102 // GetPasswordBySubToken 根据 sub_token 返回用户 ID 和门户密码 hash,供登录验证使用。
103 GetPasswordBySubToken(subToken string) (userID string, hash string, err error)
104 // GetPasswordByUsername 根据 username 返回用户 ID、密码 hash、sub_token,供 /user 账号登录使用。

Callers 3

handleSetupMethod · 0.65
handleUpdateUserMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected