Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthApp = gorf.GorfBaseApp{ Name: "auth", RouteHandler: Urls, SetUpHandler: setup, }
View Source
var AuthSettings = AuthAppSettings{
NewUserState: activateUserOnCreation,
EmailVerification: skipEmailVerification,
NewUserAdminState: defaultAdminStatus,
}
Functions ¶
func LoginRequiredMiddleware ¶
func UserProfile ¶
func UserSignUp ¶
Types ¶
type AuthAppSettings ¶ added in v0.0.7
type AuthAppSettings struct {
NewUserState AuthState
NewUserAdminState AuthState
EmailVerification AuthState
EmailVerificationBackend AuthEmailVerificationBackend
}
type AuthEmailVerificationBackend ¶ added in v0.0.5
type User ¶
type User struct {
gorm.Model
FirstName string `json:"first_name" binding:"required"`
LastName string `json:"last_name" binding:"required"`
Email string `json:"email" binding:"required" gorm:"unique;not null"`
Password string `json:"-" binding:"required"`
Active bool `json:"active"`
Admin bool `json:"admin"`
}
Click to show internal directories.
Click to hide internal directories.