userself

package
v0.0.0-...-d39f515 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecoverPassword

func RecoverPassword(dp *depot.Depot, payload *RecoverPasswordPayload) error

Types

type ActivatePayload

type ActivatePayload struct {
	ActivationToken *string `json:"activationToken"`
	NewPassword     *string `json:"newPassword"`
	NewPassword2    *string `json:"newPassword2"`
}

type ChangePasswordPayload

type ChangePasswordPayload struct {
	NewPassword  *string `json:"newPassword"`
	NewPassword2 *string `json:"newPassword2"`
}

type RecoverPasswordPayload

type RecoverPasswordPayload struct {
	Email *string `json:"email"`
}

type ResetPasswordPayload

type ResetPasswordPayload struct {
	NewPassword        *string `json:"newPassword"`
	NewPassword2       *string `json:"newPassword2"`
	PasswordResetToken *string `json:"passwordResetToken"`
}

type SignUpPayload

type SignUpPayload struct {
	Email            *string `json:"email"`
	Name             *string `json:"name"`
	OrganizationName *string `json:"organizationName"`
	Password         *string `json:"password"`
}

type UpdatePayload

type UpdatePayload struct {
	Name *string `json:"name"`
}

type UserSelf

type UserSelf struct {
	CreatedAt           time.Time `json:"createdAt"`
	Email               string    `json:"email"`
	Id                  uint64    `json:"id"`
	IsEmailVerified     bool      `json:"isEmailVerified"`
	IsOrganizationOwner bool      `json:"isOrganizationOwner"`
	Name                string    `json:"name"`
	UpdatedAt           time.Time `json:"updatedAt"`
}

func Activate

func Activate(dp *depot.Depot, payload *ActivatePayload) (*UserSelf, error)

func Read

func Read(dp *depot.Depot, id uint64) (*UserSelf, error)

func ResetPassword

func ResetPassword(dp *depot.Depot, payload *ResetPasswordPayload) (*UserSelf, error)

func SignUp

func SignUp(dp *depot.Depot, payload *SignUpPayload) (*UserSelf, error)

func Update

func Update(dp *depot.Depot, id uint64, payload *UpdatePayload) (*UserSelf, error)

func VerifyEmailAddress

func VerifyEmailAddress(dp *depot.Depot, payload *VerifyEmailAddressPayload) (*UserSelf, error)

type VerifyEmailAddressPayload

type VerifyEmailAddressPayload struct {
	EmailVerificationToken *string `json:"emailVerificationToken"`
}

Jump to

Keyboard shortcuts

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