We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bf2103 commit 8a78eb0Copy full SHA for 8a78eb0
api/login.go
@@ -15,12 +15,13 @@ type LoginResponse struct {
15
Token string `json:"token"`
16
}
17
18
-func (c *Client) Login(email, password string) (*LoginResponse, error) {
+// login is the user's email or E.164-formatted phone number
19
+func (c *Client) Login(login, password string) (*LoginResponse, error) {
20
var param struct {
- Email string `json:"email"`
21
+ Login string `json:"login"`
22
Password string `json:"password"`
23
- param.Email = email
24
+ param.Login = login
25
param.Password = password
26
27
var r *LoginResponse
0 commit comments