method

App.ChangePassword

func (application *App) ChangePassword( ctx context.Context, sessionToken, currentPassword, nextPassword string, ) error

Verify the current password, replace it, and revoke all sessions and API keys.

Source core/auth.go:517

@param ctx
The ctx value.
@param sessionToken
The sessionToken value.
@param currentPassword
The currentPassword value.
@param nextPassword
The nextPassword value.
@returns
The declared result.

Related types

  • App

    A resolved application bound to operation services.