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



commit fd87c6857aa22904f84a2769f217f8cf8ea52429
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 eb84287b..6bb7026c 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]