Move command logic into app layer (#5617)

Этот коммит содержится в:
Joram Wilander
2017-03-13 09:23:16 -04:00
коммит произвёл Christopher Speller
родитель 8b0eedbbcd
Коммит e9c6cc269b
26 изменённых файлов: 823 добавлений и 726 удалений

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

@@ -92,7 +92,7 @@ func manualTest(c *api.Context, w http.ResponseWriter, r *http.Request) {
user := &model.User{
Email: "success+" + model.NewId() + "simulator.amazonses.com",
Nickname: username[0],
Password: api.USER_PASSWORD}
Password: app.USER_PASSWORD}
result, err := client.CreateUser(user, "")
if err != nil {
@@ -107,7 +107,7 @@ func manualTest(c *api.Context, w http.ResponseWriter, r *http.Request) {
userID = newuser.Id
// Login as user to generate auth token
_, err = client.LoginById(newuser.Id, api.USER_PASSWORD)
_, err = client.LoginById(newuser.Id, app.USER_PASSWORD)
if err != nil {
c.Err = err
return