diff --git a/VERSION b/VERSION index 5a9264f..5ec4258 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1158 \ No newline at end of file +1159 \ No newline at end of file diff --git a/backend/routes/osm_auth.py b/backend/routes/osm_auth.py index d81ba53..213826f 100644 --- a/backend/routes/osm_auth.py +++ b/backend/routes/osm_auth.py @@ -157,10 +157,16 @@ async def status(user=Depends(get_current_user)): "SELECT osm_name, osm_uid, linked_at FROM user_osm WHERE user_id=?", (user["id"],) ).fetchone() - if not row: - return {"linked": False} - return {"linked": True, "osm_name": row["osm_name"], - "osm_uid": row["osm_uid"], "linked_at": row["linked_at"]} + # Registrierungs-URL umgebungsabhängig: Sandbox auf Staging, echte OSM in Prod. + base = { + "linked": bool(row), + "signup_url": OSM_OAUTH_BASE + "/user/new", + "sandbox": "dev.openstreetmap" in OSM_OAUTH_BASE, + "configured": bool(CLIENT_ID), + } + if row: + base.update(osm_name=row["osm_name"], osm_uid=row["osm_uid"], linked_at=row["linked_at"]) + return base # ------------------------------------------------------------------ diff --git a/backend/static/index.html b/backend/static/index.html index bb489c0..a934541 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -86,14 +86,14 @@
OpenStreetMap ist die freie Weltkarte – von Menschen gemacht, gehört allen, keine Werbung, kein Datenverkauf. Mit einem kostenlosen Konto trägst du hundefreundliche Orte ein, die jeder Hundehalter sieht.
+So geht's:
+⚠️ Testphase: Dies ist eine Test-Karte. Deine Einträge verändern die echte OpenStreetMap noch nicht.
` : ''} + + Kostenloses OSM-Konto erstellen + + +