Added ability to sign in via username; separated email sign in and sign up config settings

This commit is contained in:
Reed Garmsen
2016-01-13 14:58:49 -08:00
parent 320fe1c392
commit b013f02209
14 changed files with 407 additions and 4 deletions

View File

@@ -280,6 +280,14 @@ func (c *Client) LoginByEmail(name string, email string, password string) (*Resu
return c.login(m)
}
func (c *Client) LoginByUsername(name string, username string, password string) (*Result, *AppError) {
m := make(map[string]string)
m["name"] = name
m["username"] = username
m["password"] = password
return c.login(m)
}
func (c *Client) LoginByEmailWithDevice(name string, email string, password string, deviceId string) (*Result, *AppError) {
m := make(map[string]string)
m["name"] = name