mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 22:43:57 +00:00
fix: only redirect user to login form if legacy QR code is contains no token
This commit is contained in:
1 parent
7176a444af
commit
6a4d868777
1 file changed
+6
-6
+6
-6
@@ -481,12 +481,12 @@ public class LoginActivity extends BaseActivity implements EventSelectedListener
|
||||
}
|
||||
builder.setPositiveButton(android.R.string.ok, null);
|
||||
builder.show();
|
||||
}
|
||||
final String accessToken = AppPreferences.on(this).getAccessToken();
|
||||
if (TextUtils.isEmpty(accessToken)) {
|
||||
LocalBroadcastManager.getInstance(LoginActivity.this)
|
||||
.sendBroadcast(new Intent(AppConstants.ACTION_SHOW_LOGIN));
|
||||
return;
|
||||
final String accessToken = AppPreferences.on(this).getAccessToken();
|
||||
if (TextUtils.isEmpty(accessToken)) {
|
||||
LocalBroadcastManager.getInstance(LoginActivity.this)
|
||||
.sendBroadcast(new Intent(AppConstants.ACTION_SHOW_LOGIN));
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
checkLogin();
|
||||
|
||||
Reference in new issue
Block a user