Implement PUT /users/{user_id}/password endpoint for APIv4 (#5243)

Этот коммит содержится в:
Joram Wilander
2017-02-07 09:35:58 -08:00
коммит произвёл GitHub
родитель ba18374bd1
Коммит 9dc76c1823
7 изменённых файлов: 136 добавлений и 15 удалений

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

@@ -61,6 +61,8 @@ func Setup() *TestHelper {
}
func TearDown() {
utils.DisableDebugLogForTest()
options := map[string]bool{}
options[store.USER_SEARCH_OPTION_NAMES_ONLY_NO_FULL_NAME] = true
if result := <-app.Srv.Store.User().Search("", "fakeuser", options); result.Err != nil {
@@ -86,6 +88,8 @@ func TearDown() {
}
}
}
utils.EnableDebugLogForTest()
}
func (me *TestHelper) InitBasic() *TestHelper {
@@ -208,7 +212,7 @@ func (me *TestHelper) LoginBasicWithClient(client *model.Client4) {
func (me *TestHelper) LoginBasic2WithClient(client *model.Client4) {
utils.DisableDebugLogForTest()
client.Login(me.BasicUser.Email, me.BasicUser.Password)
client.Login(me.BasicUser2.Email, me.BasicUser2.Password)
utils.EnableDebugLogForTest()
}