[shotwell/shotwell-0.30] Tumblr: Do not accidentally invalidate credentials



commit eb807f7b3d565c6e8259fc1e11ed16837ccefd50
Author: Jens Georg <mail jensge org>
Date:   Wed Sep 7 22:18:07 2022 +0200

    Tumblr: Do not accidentally invalidate credentials
    
    Even if we do not use the Username with Tumblr, the class needs it. On
    successful authentication we store "unused". When authenticating with
    those credentials later, the username is set to "" causing the username
    "secret" to be removed, rendering all of the stored credentials invalid
    
    Fixed #4993

 plugins/authenticator/shotwell/TumblrAuthenticator.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/authenticator/shotwell/TumblrAuthenticator.vala 
b/plugins/authenticator/shotwell/TumblrAuthenticator.vala
index 35fdce98..8907a801 100644
--- a/plugins/authenticator/shotwell/TumblrAuthenticator.vala
+++ b/plugins/authenticator/shotwell/TumblrAuthenticator.vala
@@ -135,7 +135,7 @@ namespace Publishing.Authenticator.Shotwell.Tumblr {
                 debug("attempt start: a persistent session is available; using it");
 
                 session.authenticate_from_persistent_credentials(get_persistent_access_phase_token(),
-                        get_persistent_access_phase_token_secret(), "");
+                        get_persistent_access_phase_token_secret(), "unused");
             } else {
                 debug("attempt start: no persistent session available; showing login welcome pane");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]