Fixing issues caused by changing test emails

Этот коммит содержится в:
Reed Garmsen
2015-12-13 14:56:57 -08:00
родитель e7eb86c8c3
Коммит b9d93b104c
2 изменённых файлов: 2 добавлений и 2 удалений

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

@@ -230,7 +230,7 @@ func (c *Client) CreateUser(user *User, hash string) (*Result, *AppError) {
}
func (c *Client) CreateUserFromSignup(user *User, data string, hash string) (*Result, *AppError) {
if r, err := c.DoApiPost("/users/create?d="+data+"&h="+hash, user.ToJson()); err != nil {
if r, err := c.DoApiPost("/users/create?d="+url.QueryEscape(data)+"&h="+hash, user.ToJson()); err != nil {
return nil, err
} else {
return &Result{r.Header.Get(HEADER_REQUEST_ID),

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

@@ -70,7 +70,7 @@ func TestValidLower(t *testing.T) {
t.Error("should be valid")
}
if IsLower("corey+test@hulen.com") {
if IsLower("Corey+test@hulen.com") {
t.Error("should be invalid")
}
}