diff options
| author | Brynn Crowley <littlehill723@gmail.com> | 2025-03-06 08:24:19 +0000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-06 08:24:19 +0000 | 
| commit | f4abcb34b757e40467344ffdd7cec9f77f46a227 (patch) | |
| tree | f3cc73da2ebaa978186f6f470d5bd27b279f6a96 /internal/mocks | |
| parent | 5b52a9d4b18b5a07b1edb7403b6dc90b8d5c628d (diff) | |
feat(web): change password (#7676)
Add the ability for users to change their password from their user settings, without requiring them to use the reset password workflow. User's are required to create a elevated session in order to change their password. Users may not change their password to their current password. The user's current password is required for the password change. Users must follow any established password policies. Administrators are able to turn this feature off.
Closes #3548
Diffstat (limited to 'internal/mocks')
| -rw-r--r-- | internal/mocks/user_provider.go | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/mocks/user_provider.go b/internal/mocks/user_provider.go index b235d80b7..204940221 100644 --- a/internal/mocks/user_provider.go +++ b/internal/mocks/user_provider.go @@ -40,6 +40,20 @@ func (m *MockUserProvider) EXPECT() *MockUserProviderMockRecorder {  	return m.recorder  } +// ChangePassword mocks base method. +func (m *MockUserProvider) ChangePassword(arg0, arg1, arg2 string) error { +	m.ctrl.T.Helper() +	ret := m.ctrl.Call(m, "ChangePassword", arg0, arg1, arg2) +	ret0, _ := ret[0].(error) +	return ret0 +} + +// ChangePassword indicates an expected call of ChangePassword. +func (mr *MockUserProviderMockRecorder) ChangePassword(arg0, arg1, arg2 any) *gomock.Call { +	mr.mock.ctrl.T.Helper() +	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangePassword", reflect.TypeOf((*MockUserProvider)(nil).ChangePassword), arg0, arg1, arg2) +} +  // CheckUserPassword mocks base method.  func (m *MockUserProvider) CheckUserPassword(username, password string) (bool, error) {  	m.ctrl.T.Helper()  | 
