From 69ac5821d55b903806377d9c3f72e275d334a6ac Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 20 Jul 2022 07:47:38 +0200 Subject: [PATCH] Debug: log token/password --- app/src/main/java/eu/faircode/email/ServiceAuthenticator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceAuthenticator.java b/app/src/main/java/eu/faircode/email/ServiceAuthenticator.java index 6cfcb269f1..29724f4049 100644 --- a/app/src/main/java/eu/faircode/email/ServiceAuthenticator.java +++ b/app/src/main/java/eu/faircode/email/ServiceAuthenticator.java @@ -82,7 +82,9 @@ public class ServiceAuthenticator extends Authenticator { Log.e(ex); } - Log.i(user + " returning " + (auth == AUTH_TYPE_PASSWORD ? "password" : "token")); + Log.i(user + " returning " + + (auth == AUTH_TYPE_PASSWORD ? "password" : "token") + + (BuildConfig.DEBUG ? "=" + token : "")); return new PasswordAuthentication(user, token); }