We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c32b4b + 4807d1b commit e09638dCopy full SHA for e09638d
labctl/main.py
@@ -257,3 +257,15 @@ def change_password():
257
console.print(f"[red]Error: {data['detail']}[/red]")
258
return
259
console.print(f"[green]{data.get("message")} for {config.username}[/green]")
260
+
261
+@app.command()
262
+def forgot_password(email: str):
263
+ """
264
+ Request a password reset for the FastOnBoard-API server
265
266
+ config = Config()
267
+ if not config.api_endpoint:
268
+ console.print("[red]Error: Config not ready use `labctl config set --api-endpoint=<server>`[/red]")
269
+ return
270
+ APIDriver().post(f"/users/forgot-password?email={email}").json()
271
+ console.print(f"[green]If the email is registered you will receive a password reset link[/green]")
0 commit comments