Documentation ¶
Index ¶
- Variables
- func AnonymousRequired(h flotilla.Manage) flotilla.Manage
- func CheckPasswords(f Form) (bool, error)
- func CheckUserPassword(f Form) (bool, error)
- func LoginRequired(h flotilla.Manage) flotilla.Manage
- func MsgError(s *Manager, ms string) error
- func NewUserName(s *Manager, name string, options ...string) fork.Field
- func Next(s *Manager, name string, options ...string) fork.Field
- func PassWord(name string, options ...string) fork.Field
- func SecurityError(errf string) *securityError
- func SecurityRoute(b *flotilla.Blueprint, name string, method string, path string, ...)
- func Signed(name string, s token.Signatory, options ...string) fork.Field
- func Unauthenticated(f flotilla.Ctx, s *Manager)
- func UserName(s *Manager, name string, options ...string) fork.Field
- func ValidEmail(u *userName) error
- func ValidateSigned(s *signed) error
- type Configuration
- type EmailData
- type EmailTemplates
- type Emailer
- type Form
- type Forms
- type IfValid
- type Manager
- func (s *Manager) BoolSetting(key string) bool
- func (m *Manager) Configuration(conf ...Configuration) error
- func (s *Manager) CurrentUser() user.User
- func (s *Manager) DefaultSignatory() token.Signatory
- func (s *Manager) Flash(f flotilla.Ctx, messages ...string)
- func (s *Manager) FmtSetting(base, key string) string
- func (s *Manager) Init(a *flotilla.App)
- func (s *Manager) LoginUser(u user.User, remember bool, f flotilla.Ctx)
- func (s *Manager) LogoutUser(f flotilla.Ctx)
- func (s *Manager) ManagerLogin() string
- func (s *Manager) Message(ms string) Message
- func (m *Manager) NewForm(tag string, c []interface{}, fields ...fork.Field) Form
- func (s *Manager) NewUrls() Urls
- func (s *Manager) Passwordless() bool
- func (s *Manager) SendMail(template string, to string, link string) error
- func (s *Manager) Setting(key string) string
- func (s *Manager) Signatory(key string) token.Signatory
- func (s *Manager) Token(from string, claims ...string) string
- func (s *Manager) ValidUserName(u *userName) error
- type Message
- type Messages
- type Settings
- type Signatories
- type Times
- type Urls
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigurationError = SecurityError(`configuration error: %s`).Out
View Source
var InvalidEmail = SecurityError(`Invalid email address: %s`).Out
View Source
var InvalidSignedField = SecurityError("Invalid signed field: %s").Out
View Source
var PasswordMismatch = SecurityError("Provided passwords do not match")
Functions ¶
func CheckPasswords ¶
func CheckUserPassword ¶
func SecurityError ¶
func SecurityError(errf string) *securityError
func SecurityRoute ¶
func Unauthenticated ¶
func ValidEmail ¶
func ValidEmail(u *userName) error
func ValidateSigned ¶
func ValidateSigned(s *signed) error
Types ¶
type Configuration ¶
func WithEmailer ¶
func WithEmailer(e Emailer) Configuration
func WithSettings ¶
func WithSettings(items ...string) Configuration
func WithUserDataStore ¶
func WithUserDataStore(u user.DataStore) Configuration
type EmailTemplates ¶
type Emailer ¶
type Form ¶
func ChangePasswordForm ¶
func ConfirmUserForm ¶
func PasswordlessForm ¶
func RegisterForm ¶
func ResetPasswordForm ¶
func SendConfirmForm ¶
func SendResetForm ¶
type Manager ¶
type Manager struct { user.DataStore App *flotilla.App Settings Urls Times Forms Messages Signatories Emailer // contains filtered or unexported fields }
func New ¶
func New(c ...Configuration) *Manager
func (*Manager) BoolSetting ¶
func (*Manager) Configuration ¶
func (m *Manager) Configuration(conf ...Configuration) error
func (*Manager) CurrentUser ¶
func (*Manager) DefaultSignatory ¶
func (*Manager) FmtSetting ¶
func (*Manager) LogoutUser ¶
func (*Manager) ManagerLogin ¶
func (*Manager) Passwordless ¶
func (*Manager) ValidUserName ¶
type Signatories ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
A local implementation of gopkg.in/fatih/set.v0
|
A local implementation of gopkg.in/fatih/set.v0 |
Package token is an implementation of https://github.com/dgrijalva/jwt-go
|
Package token is an implementation of https://github.com/dgrijalva/jwt-go |
Click to show internal directories.
Click to hide internal directories.