Fixing bugs of previous pull (#563)

Fixing bugs of previous pull.

Co-authored-by: opyale <opyale@noreply.gitea.io>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/563
Reviewed-by: 6543 <6543@noreply.codeberg.org>
This commit is contained in:
opyale 2020-06-28 18:48:33 +02:00 committed by 6543
parent 815417bf11
commit 7379e9945d
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ public class LoginActivity extends BaseActivity {
if(loginType == LoginType.BASIC) {
int loginOTP = Integer.parseInt(otpCode.getText().toString().trim());
int loginOTP = (otpCode.getText().toString().length() == 6) ? Integer.parseInt(otpCode.getText().toString().trim()) : 0;
if(rawInstanceUrl.getUserInfo() != null) {