feat: implement api for "forgot password?" flow (#14915)

Relates to https://github.com/coder/coder/issues/14232

This implements two endpoints (names subject to change):
- `/api/v2/users/otp/request`
- `/api/v2/users/otp/change-password`
This commit is contained in:
Danielle Maywood
2024-10-04 11:53:25 +01:00
committed by GitHub
parent 8785a51b09
commit 4369f2b4b5
25 changed files with 1007 additions and 4 deletions
@@ -0,0 +1,7 @@
Hi Bobby,
A request to reset the password for your Coder account has been made. Your one-time passcode is:
**fad9020b-6562-4cdb-87f1-0486f1bea415**
If you did not request to reset your password, you can ignore this message.
@@ -0,0 +1 @@
Your One-Time Passcode for Coder.