diff options
Diffstat (limited to 'protocols/Discord/src/http.cpp')
| -rw-r--r-- | protocols/Discord/src/http.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Discord/src/http.cpp b/protocols/Discord/src/http.cpp index c5d5e1e0c0..32976d39cf 100644 --- a/protocols/Discord/src/http.cpp +++ b/protocols/Discord/src/http.cpp @@ -121,11 +121,11 @@ void CDiscordProto::ServerThread(void*) JSONNode root; root << WCHAR_PARAM("password", wszPassword);
if (wszEmail.Find('@') == -1) {
+ // ensure that a phone number begins with +
if (wszEmail[0] != '+')
wszEmail.Insert(0, L"+");
- root << WCHAR_PARAM("login", wszEmail) ;
}
- else root << WCHAR_PARAM("email", wszEmail);
+ root << WCHAR_PARAM("login", wszEmail);
Push(new AsyncHttpRequest(this, REQUEST_POST, "/auth/login", &CDiscordProto::OnReceiveToken, &root));
}
|
