[MM-39631] mirgate user store to sqlx (#19403)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Kirill Krotov
2022-02-09 17:26:16 +03:00
коммит произвёл GitHub
родитель d5b24e383d
Коммит 440790dad6
10 изменённых файлов: 258 добавлений и 127 удалений

Просмотреть файл

@@ -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"