Refresh OAUTH tokens

Refs #17
This commit is contained in:
M66B
2018-08-27 16:19:56 +00:00
parent 4d7c3e9c88
commit 846a39eb78
43 changed files with 140 additions and 45 deletions

View File

@@ -267,6 +267,10 @@ public class FragmentIdentity extends FragmentEx {
if (TextUtils.isEmpty(replyto))
replyto = null;
// Refresh token
if (id >= 0 && auth_type == Helper.AUTH_TYPE_GMAIL)
password = Helper.refreshToken(getContext(), "com.google", user, password);
// Check SMTP server
if (synchronize) {
Properties props = MessageHelper.getSessionProperties(auth_type);