mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Use service authenticator
This commit is contained in:
@@ -56,6 +56,8 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import static eu.faircode.email.ServiceAuthenticator.AUTH_TYPE_PASSWORD;
|
||||
|
||||
public class FragmentAccounts extends FragmentBase {
|
||||
private boolean settings;
|
||||
|
||||
@@ -267,7 +269,7 @@ public class FragmentAccounts extends FragmentBase {
|
||||
|
||||
boolean authorized = true;
|
||||
for (TupleAccountEx account : accounts)
|
||||
if (account.auth_type != EmailService.AUTH_TYPE_PASSWORD &&
|
||||
if (account.auth_type != AUTH_TYPE_PASSWORD &&
|
||||
!Helper.hasPermissions(getContext(), Helper.getOAuthPermissions())) {
|
||||
authorized = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user