Documentation ¶
Index ¶
- func GetStringFromMap(data map[string]interface{}, field string) (string, bool)
- type AuthAdaptorPassword
- func (a AuthAdaptorPassword) Authenticate(userId string, data map[string]interface{}) (string, apperror.Error)
- func (a *AuthAdaptorPassword) Backend() db.Backend
- func (a *AuthAdaptorPassword) ChangePassword(userId, newPw string) apperror.Error
- func (a *AuthAdaptorPassword) GetItem(userId string) (*AuthItemPassword, apperror.Error)
- func (a AuthAdaptorPassword) Name() string
- func (a *AuthAdaptorPassword) RegisterUser(user kit.User, data map[string]interface{}) (kit.AuthItem, apperror.Error)
- func (a *AuthAdaptorPassword) SetBackend(b db.Backend)
- type AuthItemPassword
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthAdaptorPassword ¶
type AuthAdaptorPassword struct {
// contains filtered or unexported fields
}
func (AuthAdaptorPassword) Authenticate ¶
func (a AuthAdaptorPassword) Authenticate(userId string, data map[string]interface{}) (string, apperror.Error)
func (*AuthAdaptorPassword) Backend ¶
func (a *AuthAdaptorPassword) Backend() db.Backend
func (*AuthAdaptorPassword) ChangePassword ¶
func (a *AuthAdaptorPassword) ChangePassword(userId, newPw string) apperror.Error
func (*AuthAdaptorPassword) GetItem ¶
func (a *AuthAdaptorPassword) GetItem(userId string) (*AuthItemPassword, apperror.Error)
func (AuthAdaptorPassword) Name ¶
func (a AuthAdaptorPassword) Name() string
func (*AuthAdaptorPassword) RegisterUser ¶
func (*AuthAdaptorPassword) SetBackend ¶
func (a *AuthAdaptorPassword) SetBackend(b db.Backend)
type AuthItemPassword ¶
type AuthItemPassword struct { // Id serves as UserId. db.StrIdModel Hash string `db:"required;max:150"` }
func (*AuthItemPassword) Collection ¶
func (item *AuthItemPassword) Collection() string
func (*AuthItemPassword) GetUser ¶
func (item *AuthItemPassword) GetUser() kit.User
func (*AuthItemPassword) GetUserId ¶
func (item *AuthItemPassword) GetUserId() interface{}
func (*AuthItemPassword) SetUser ¶
func (item *AuthItemPassword) SetUser(u kit.User)
func (*AuthItemPassword) SetUserId ¶
func (item *AuthItemPassword) SetUserId(id interface{}) error
Click to show internal directories.
Click to hide internal directories.