[gnome-maps/gnome-3-36] osmConnection: Use '1' for permission instead of 'yes'



commit 2c4c0dfed95d615465c5a2f1044f26290c3efe90
Author: Marcus Lundblad <ml update uu se>
Date:   Fri Jul 9 23:03:42 2021 +0200

    osmConnection: Use '1' for permission instead of 'yes'
    
    Use the correct value '1' instead of 'yes' when posting
    the authorization form. This fixes a regression making
    OSM OAUTH setup to break with recent updates on
    openstreetmap.org breaking the old incorrect behavior.
    
    Fixes #386

 src/osmConnection.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/osmConnection.js b/src/osmConnection.js
index f7842510..8c523509 100644
--- a/src/osmConnection.js
+++ b/src/osmConnection.js
@@ -317,7 +317,7 @@ var OSMConnection = class OSMConnection {
             oauth_token: this._oauthToken,
             oauth_callback: '',
             authenticity_token: token,
-            allow_write_api: 'yes',
+            allow_write_api: '1',
             commit: 'Save changes'
         });
         let requestHeaders = msg.request_headers;


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