mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
The server said
This commit is contained in:
@@ -352,6 +352,15 @@ public class EmailService implements AutoCloseable {
|
||||
AuthState authState = OAuthRefresh(context, provider, password);
|
||||
connect(host, port, auth, user, authState.getAccessToken(), factory);
|
||||
return authState.jsonSerializeString();
|
||||
} else if (purpose == PURPOSE_CHECK) {
|
||||
String msg = ex.getMessage();
|
||||
if (msg != null)
|
||||
msg = msg.trim();
|
||||
if (TextUtils.isEmpty(msg))
|
||||
throw ex;
|
||||
throw new AuthenticationFailedException(
|
||||
context.getString(R.string.title_service_auth, msg),
|
||||
ex.getNextException());
|
||||
} else
|
||||
throw ex;
|
||||
} catch (MailConnectException ex) {
|
||||
|
||||
Reference in New Issue
Block a user