   # This should be harmless if the dialog box is already closed
   dlgClose()
 
-  if not loggedIn
-    window.location.pathname = '/oauth/authorize'
-
   msg msgMovingOnToTheNextChallenge
   setDelay 1, msgClose()
   payload = {

  ###
  # Open the currently displayed OSM objects in the selected editor (e)
  ###
  if not loggedIn
    window.location.pathname = '/oauth/authorize'

  editor = e
  if map.getZoom() < 14
    msg msgZoomInForEdit, 3

selectedFeature = null

# User variables
editor = ""
difficulty = null
location = null
