method

App.SetPassword

Validate and replace a local password, then revoke existing sessions and API keys.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.
userIDstringThe userID value.
passwordstringThe password value.

Returns

The declared result.

error

Full signature

func (application *App) SetPassword( ctx context.Context, collection, userID, password string, ) error

Source core/auth.go:212

Related types

  • App

    A resolved application bound to operation services.