Documentation ¶
Index ¶
Constants ¶
View Source
const LoginFailedPage = "/auth/login/failed"
View Source
const LoginOkPage = "/auth/login_ok"
View Source
const LoginPageTemplate = "login"
LoginPageTemplate is the Name of the Template file
View Source
const RegisterOkPage = "/auth/user_registered"
View Source
const RegisterPageTemplate = "register"
RegisterPageTemplate is the Name of the Template file
Variables ¶
View Source
var UrlNameAlreadyRegisteredError = errors.New("Url name already registered")
UrlNameAlreadyRegisteredError is the Error to mark that a URL was tried to be overwritten
Functions ¶
Types ¶
type LoginPage ¶
LoginPage are the Values for the Login Template
func GetLoginPageValues ¶
func GetLoginPageValues() *LoginPage
GetLoginPageValues provides Default Values for the Login Page
type PostRegisterPage ¶
func GetPostRegisterValues ¶
func GetPostRegisterValues() *PostRegisterPage
GetPostRegisterValues provides default values for Register Page
type RegisterForm ¶
type RegisterForm struct { NameField string NameName string PasswordFieldValidation string PasswordValidationName string UsernameField string PasswordField string UsernameName string PasswordName string SubmitName string PasswordNote string PasswordValidationInfo string RegisterMailSender string PhoneField string RegisterService string Challenge string }
func (*RegisterForm) GetUserFromForm ¶
func (rf *RegisterForm) GetUserFromForm(v url.Values) *model.User
func (*RegisterForm) GetUserFromJson ¶
func (rf *RegisterForm) GetUserFromJson(m map[string]interface{}) (*model.User, error)
type RegisterMail ¶
type RegisterMail struct { util.MailTemplateDefaults RegistrationID string }
func GetRegisterFormMailData ¶
func GetRegisterFormMailData(u *model.User) *RegisterMail
type RegisterPage ¶
type RegisterPage struct { Defaults RegisterForm Headline string Description string }
RegisterPage are the Values for the register Template
func GetRegisterPageValues ¶
func GetRegisterPageValues() *RegisterPage
Click to show internal directories.
Click to hide internal directories.