setpassword

package
v0.0.0-...-294dc8c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SetPasswordHelp contains the short help text for the command.
	SetPasswordHelp = "Sets the password of an user in OpenSlides"

	// SetPasswordHelpExtra contains the long help text for the command without
	// the headline.
	SetPasswordHelpExtra = "This command sets the password of an user by a given user ID."
)

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the subcommand.

func Execute

func Execute(ctx context.Context, userID int64, password string, ba backendAction) error

Execute gets the hash and sets the password for the given user.

func Run

func Run(ctx context.Context, gc gRPCClient, userID int64, password string) error

Run calls respective procedure to set password of the given user.

func SetPassword

func SetPassword(ctx context.Context, in *proto.SetPasswordRequest, ba backendAction) (*proto.SetPasswordResponse, error)

SetPassword gets the hash and sets the password for the given user. This function is the server side entrypoint for this package.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL