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



commit 4469817833a961b9d25296df6bb23132590e6371
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 7cbee11d..e0d5f72d 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]