mail_registration

package
v0.0.0-...-4a192ad Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocaleEN = iota
	LocaleRS = iota
)

Variables

This section is empty.

Functions

func EmailCallback

E-mail callback used to finish registration and create an account

func NewEMailVerification

Sends varification mail to specified address

func NewVerificationEmailBody

func NewVerificationEmailBody(locale int, logo_path string) string

It just works :D Look, ma, amma HTML programmer

Yeah, I will refactor it using true html templates latter. TODO

Types

type EmailCallbackOpts

type EmailCallbackOpts struct {
	Name           string
	VerificationID string
	Username       string
	Password       string
}

type NewEMailVerificationOpts

type NewEMailVerificationOpts struct {
	Locale           int
	EMail            string
	LogoURL          string
	CallbackEndpoint string
}

Jump to

Keyboard shortcuts

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