mirror of
https://codeberg.org/gitnex/GitNex
synced 2024-12-23 00:48:57 +01:00
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:
parent
815417bf11
commit
7379e9945d
@ -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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user