User: use update function for password updates (#86419)

* Update password through Update function instead

* Remove duplicated to lower

* Refactor password code
This commit is contained in:
Karl Persson authored and GitHub committed 2024-04-17 15:24:36 +02:00
1 parent f99d5a1c1a
commit 1a6777cb93
21 files changed
+182 -205

No files matched your search

+2 -1
View File
@@ -355,8 +355,9 @@ func putAdminScenario(t *testing.T, desc string, url string, routePattern string
hs := &HTTPServer{
Cfg: setting.NewCfg(),
SQLStore: sqlStore,
authInfoService: &authinfotest.FakeService{},
authInfoService: &authinfotest.FakeService{ExpectedError: user.ErrUserNotFound},
userService: userSvc,
SocialService: &mockSocialService{},
}
sc := setupScenarioContext(t, url)