[MM-39631] mirgate user store to sqlx (#19403)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d5b24e383d
Коммит
440790dad6
@@ -417,7 +417,10 @@ func (th *TestHelper) InitLogin() *TestHelper {
|
||||
th.TeamAdminUser = userCache.TeamAdminUser.DeepCopy()
|
||||
th.BasicUser = userCache.BasicUser.DeepCopy()
|
||||
th.BasicUser2 = userCache.BasicUser2.DeepCopy()
|
||||
mainHelper.GetSQLStore().GetMaster().Insert(th.SystemAdminUser, th.TeamAdminUser, th.BasicUser, th.BasicUser2, th.SystemManagerUser)
|
||||
|
||||
users := []*model.User{th.SystemAdminUser, th.TeamAdminUser, th.BasicUser, th.BasicUser2, th.SystemManagerUser}
|
||||
mainHelper.GetSQLStore().User().InsertUsers(users)
|
||||
|
||||
// restore non hashed password for login
|
||||
th.SystemAdminUser.Password = "Pa$$word11"
|
||||
th.TeamAdminUser.Password = "Pa$$word11"
|
||||
|
||||
Ссылка в новой задаче
Block a user