account

package module
v0.0.0-...-f353cbf Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountAPI

type AccountAPI struct {
	// contains filtered or unexported fields
}

func NewAccountAPI

func NewAccountAPI(ctx core.Context) *AccountAPI

func (*AccountAPI) AuthTokenName

func (a *AccountAPI) AuthTokenName() string

func (*AccountAPI) Configure

func (a *AccountAPI) Configure(router *mux.Router) error

func (*AccountAPI) Name

func (a *AccountAPI) Name() string

func (*AccountAPI) Subdomain

func (a *AccountAPI) Subdomain() string

type AccountInfoResponse

type AccountInfoResponse struct {
	ID        uint   `json:"id"`
	Email     string `json:"email"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Verified  bool   `json:"verified"`
}

type LoginRequest

type LoginRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
	Otp   bool   `json:"otp"`
}

type MetaResponse

type MetaResponse struct {
	Domain string `json:"domain"`
}

type OTPDisableRequest

type OTPDisableRequest struct {
	Password string `json:"password"`
}

type OTPGenerateResponse

type OTPGenerateResponse struct {
	OTP string `json:"otp"`
}

type OTPValidateRequest

type OTPValidateRequest struct {
	OTP string `json:"otp"`
}

type OTPVerifyRequest

type OTPVerifyRequest struct {
	OTP string `json:"otp"`
}

type PasswordResetRequest

type PasswordResetRequest struct {
	Email string `json:"email"`
}

type PasswordResetVerifyRequest

type PasswordResetVerifyRequest struct {
	Email    string `json:"email"`
	Token    string `json:"token"`
	Password string `json:"password"`
}

type PongResponse

type PongResponse struct {
	Ping  string `json:"ping"`
	Token string `json:"token"`
}

type RegisterRequest

type RegisterRequest struct {
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Email     string `json:"email"`
	Password  string `json:"password"`
}

type UpdateEmailRequest

type UpdateEmailRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type UpdatePasswordRequest

type UpdatePasswordRequest struct {
	CurrentPassword string `json:"current_password"`
	NewPassword     string `json:"new_password"`
}

type UploadLimitResponse

type UploadLimitResponse struct {
	Limit uint64 `json:"limit"`
}

type VerifyEmailRequest

type VerifyEmailRequest struct {
	Email string `json:"email"`
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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