Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidIDField = errors.New("[auth - gorm] invalid id field")
View Source
var ErrInvalidPasswordHashField = errors.New("[auth - gorm] invalid password hash field")
View Source
var ErrInvalidUsernameField = errors.New("[auth - gorm] invalid username field")
View Source
var ErrNilDB = errors.New("[auth - gorm] db is nil")
View Source
var ErrNilUserModel = errors.New("[auth - gorm] user model is nil")
View Source
var ErrNilUserTableDoesNotExist = errors.New("[auth - gorm] user table does not exist")
Functions ¶
This section is empty.
Types ¶
type GormAuthDatasource ¶
type GormAuthDatasource struct {
// contains filtered or unexported fields
}
func NewGormAuthDatasoruce ¶
func NewGormAuthDatasoruce(opts GormAuthDatasourceOptions) *GormAuthDatasource
func (*GormAuthDatasource) FindPIDByEmail ¶
func (gads *GormAuthDatasource) FindPIDByEmail(email string) (authcore.PID, error)
func (*GormAuthDatasource) FindPIDByValidCredentials ¶
func (*GormAuthDatasource) ResetPassword ¶
func (gads *GormAuthDatasource) ResetPassword(pid authcore.PID, password string) error
Click to show internal directories.
Click to hide internal directories.