Browse Source

Fix encoding on login

pull/306/head
M M Arif 5 days ago
parent
commit
fec0945be9
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/src/main/java/org/mian/gitnex/activities/LoginActivity.java

+ 2
- 1
app/src/main/java/org/mian/gitnex/activities/LoginActivity.java View File

@@ -32,6 +32,7 @@ import org.mian.gitnex.util.AppUtil;
import org.mian.gitnex.util.TinyDB;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
@@ -530,7 +531,7 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener

private void letTheUserIn(final String instanceUrl, final String loginUid, final String loginPass, final int loginOTP) {

final String credential = Credentials.basic(loginUid, loginPass, Charset.forName("UTF-8"));
final String credential = Credentials.basic(loginUid, loginPass, StandardCharsets.UTF_8);

Call<List<UserTokens>> call;
if(loginOTP != 0) {


Loading…
Cancel
Save