Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashPasswordRequest ¶
type HashPasswordRequest struct {
Password string `json:"password" validate:"required"`
}
type HashPasswordResponse ¶
type IPasswordHasher ¶
type IPasswordHasher interface { // IsAcceptablePassword checks if the password is acceptable. i.e. not the same as the username, and meets the minimum requirements IsAcceptablePassword(request *IsAcceptablePasswordRequest) error // HashPassword hashes the password HashPassword(ctx context.Context, request *HashPasswordRequest) (*HashPasswordResponse, error) // VerifyPassword verifies the password VerifyPassword(ctx context.Context, request *VerifyPasswordRequest) error }
type IUserIdGenerator ¶
type IUserIdGenerator interface {
GenerateUserId() string
}
type IsAcceptablePasswordRequest ¶ added in v1.0.29
type IsAcceptablePasswordRequest struct {
Password string `json:"password" validate:"required"`
}
type VerifyPasswordRequest ¶
Click to show internal directories.
Click to hide internal directories.