SetPassword 设置门户密码(bcrypt hash),传空字符串表示清除密码。
(userID, hash string)
| 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 账号登录使用。 |
no outgoing calls
no test coverage detected