[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-6-g037a10503

paul at claws-mail.org paul at claws-mail.org
Mon Jul 12 11:31:16 CEST 2021


The branch, gtk3 has been updated
       via  037a105039fe946305432f8f845b06e36ea76717 (commit)
      from  f459d1c27426a10af90f8ef73aef78ec846ebffb (commit)

Summary of changes:
 src/oauth2.c        | 6 +++---
 src/prefs_account.c | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit 037a105039fe946305432f8f845b06e36ea76717
Author: paul <paul at claws-mail.org>
Date:   Mon Jul 12 10:31:12 2021 +0100

    fix bug 4495, 'Improve text strings for OAuth2'
    
    based on patch by Marcel Pol

diff --git a/src/oauth2.c b/src/oauth2.c
index 8059b01ab..4fecd4d85 100644
--- a/src/oauth2.c
+++ b/src/oauth2.c
@@ -235,7 +235,7 @@ int oauth2_obtain_tokens (Oauth2Service provider, OAUTH2Data *OAUTH2Data, const
         token = oauth2_get_token_from_response(provider, authcode);
         debug_print("Auth token: %s\n", token);
         if (token == NULL) {
-                log_message(LOG_PROTOCOL, _("OAuth2 missing authentication code\n"));
+                log_message(LOG_PROTOCOL, _("OAuth2 missing authorization code\n"));
                 return (1);
         }
 
@@ -250,7 +250,7 @@ int oauth2_obtain_tokens (Oauth2Service provider, OAUTH2Data *OAUTH2Data, const
 	sock_set_io_timeout(10);
 	sock->gnutls_priority = "NORMAL:!VERS-SSL3.0:!VERS-TLS1.0:!VERS-TLS1.1";
         if (ssl_init_socket(sock) == FALSE) {
-                log_message(LOG_PROTOCOL, _("OAuth2 SSL connection error\n"));
+                log_message(LOG_PROTOCOL, _("OAuth2 SSL/TLS connection error\n"));
                 g_free(token);
                 return (1);
         }
@@ -535,7 +535,7 @@ gint oauth2_check_passwds (PrefsAccount *ac_prefs)
 	  OAUTH2Data->refresh_token = passwd_store_get_account(ac_prefs->account_id, PWS_ACCOUNT_OAUTH2_REFRESH);
 	  ret = oauth2_use_refresh_token (ac_prefs->oauth2_provider, OAUTH2Data);
 	}else if (passwd_store_has_password(PWS_ACCOUNT, uid, PWS_ACCOUNT_OAUTH2_AUTH)) {
-	  log_message(LOG_PROTOCOL, _("OAuth2 trying for fresh access token with auth code\n"));
+	  log_message(LOG_PROTOCOL, _("OAuth2 trying for fresh access token with authorization code\n"));
 	  ret = oauth2_obtain_tokens (ac_prefs->oauth2_provider, OAUTH2Data, 
 				      passwd_store_get_account(ac_prefs->account_id, PWS_ACCOUNT_OAUTH2_AUTH));
 	}else{
diff --git a/src/prefs_account.c b/src/prefs_account.c
index 4ed506009..79718b04b 100644
--- a/src/prefs_account.c
+++ b/src/prefs_account.c
@@ -2320,7 +2320,8 @@ static void oauth2_create_widget_func(PrefsPage * _page,
 	gtk_widget_show (oauth2_authcode_entry);
 	gtk_widget_set_margin_bottom(oauth2_authcode_entry, 8);
 	//gtk_widget_set_size_request (oauth2_authcode_entry, DEFAULT_ENTRY_WIDTH, -1);
-	gtk_widget_set_tooltip_text(oauth2_authcode_entry, _("Paste complete URL from browser or the provided auth token"));
+	gtk_widget_set_tooltip_text(oauth2_authcode_entry,
+		_("Paste complete URL from browser or the provided authorization token"));
 	gtk_box_pack_start (GTK_BOX (hbox), oauth2_authcode_entry, TRUE, TRUE, 0);
 
 	hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list