docs(oo): comment where the new helpers are used
- link.go/links.go: third-party doc packs (fileid links), id-stability caveat - auth.go AuthenticateAs / users check: email-vs-userName login finding - projects files replace-in: version-history rationale
This commit is contained in:
@@ -103,8 +103,10 @@ func (c *Client) authenticateOnce(ctx context.Context) error {
|
||||
// token, and the portal error otherwise.
|
||||
//
|
||||
// OnlyOffice accepts either the userName or the account email as the login. On
|
||||
// some portals the userName login fails while the email works — use this probe
|
||||
// to tell them apart before sharing credentials.
|
||||
// the arc-1 portal (office.produktor.io) the account userName login returns
|
||||
// HTTP 500 "User authentication failed" while the account email succeeds —
|
||||
// confirmed for a freshly created guest user. Use this probe before sharing
|
||||
// credentials (see `oo users check`), and prefer the email as the login.
|
||||
func (c *Client) AuthenticateAs(ctx context.Context, login, password string) error {
|
||||
body, err := json.Marshal(Credentials{User: login, Password: password})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user