Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTrailHandler ¶
func IsSamePassword ¶
Types ¶
type Entry ¶
type Event ¶
type Event int
const ( // EventLoginSuccess represents Login Success EventLoginSuccess Event // EventLoginFailure represents Login Failure EventLoginFailure // EventLogout represents Logout EventLogout // EventSignup represents Signup EventSignup // EventChangePassword represents Change Password EventChangePassword // EventChangeRoles represents Change Roles EventChangeRoles )
type PasswordChecker ¶
type PasswordChecker struct { PwMinLength int PwUppercaseRequired bool PwLowercaseRequired bool PwDigitRequired bool PwSymbolRequired bool PwMinGuessableLevel int PwExcludedKeywords []string PwExcludedFields []string PwHistorySize int PwHistoryDays int PasswordHistoryEnabled bool }
func (*PasswordChecker) ShouldSavePasswordHistory ¶
func (pc *PasswordChecker) ShouldSavePasswordHistory() bool
func (*PasswordChecker) ValidatePassword ¶
func (pc *PasswordChecker) ValidatePassword(payload ValidatePasswordPayload) skyerr.Error
type PwHousekeeper ¶
type PwHousekeeper struct { AppName string AccessControl string DBOpener skydb.DBOpener DBImpl string Option string DBConfig skydb.DBConfig PwHistorySize int PwHistoryDays int PasswordHistoryEnabled bool }
func (*PwHousekeeper) Housekeep ¶
func (p *PwHousekeeper) Housekeep(authID string)
Click to show internal directories.
Click to hide internal directories.