mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-11 16:45:13 +00:00
Merge commit from fork
* fix: respect lockout policy on password change (with old password) * add tarpitting * cleanup
This commit is contained in:
@@ -25,6 +25,26 @@ type HumanPasswordWriteModel struct {
|
||||
UserState domain.UserState
|
||||
}
|
||||
|
||||
func (wm *HumanPasswordWriteModel) GetUserState() domain.UserState {
|
||||
return wm.UserState
|
||||
}
|
||||
|
||||
func (wm *HumanPasswordWriteModel) GetPasswordCheckFailedCount() uint64 {
|
||||
return wm.PasswordCheckFailedCount
|
||||
}
|
||||
|
||||
func (wm *HumanPasswordWriteModel) GetEncodedHash() string {
|
||||
return wm.EncodedHash
|
||||
}
|
||||
|
||||
func (wm *HumanPasswordWriteModel) GetResourceOwner() string {
|
||||
return wm.ResourceOwner
|
||||
}
|
||||
|
||||
func (wm *HumanPasswordWriteModel) GetWriteModel() *eventstore.WriteModel {
|
||||
return &wm.WriteModel
|
||||
}
|
||||
|
||||
func NewHumanPasswordWriteModel(userID, resourceOwner string) *HumanPasswordWriteModel {
|
||||
return &HumanPasswordWriteModel{
|
||||
WriteModel: eventstore.WriteModel{
|
||||
|
||||
Reference in New Issue
Block a user