locust-cloud 1.11.5__py3-none-any.whl → 1.11.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
locust_cloud/auth.py CHANGED
@@ -351,7 +351,7 @@ def register_auth(environment: locust.env.Environment):
351
351
  },
352
352
  ],
353
353
  "callback_url": f"{web_base_path}/confirm-reset-password",
354
- "submit_button_text": "Reset Password",
354
+ "submit_button_text": "Set Password",
355
355
  },
356
356
  "info": "You must set a new password",
357
357
  }
@@ -408,6 +408,10 @@ def register_auth(environment: locust.env.Environment):
408
408
  session["auth_info"] = "Password reset successfully! Please login"
409
409
  session["auth_error"] = ""
410
410
 
411
+ if session.get("challenge_session"):
412
+ session["challenge_session"] = ""
413
+ return redirect("https://docs.locust.cloud/")
414
+
411
415
  return redirect(url_for("locust.login"))
412
416
  except requests.exceptions.HTTPError as e:
413
417
  message = e.response.json().get("Message", "An unexpected error occured. Please try again.")