authentication-zero-api.md in authentication-zero-2.12.0 vs authentication-zero-api.md in authentication-zero-2.12.1
- old
+ new
@@ -19,11 +19,10 @@
- [Sign up](#sign-up)
- [Sign in](#sign-in)
- [Get your sessions](#get-your-sessions)
- [Get a session](#get-a-session)
- [Destroy a session](#destroy-a-session)
-- [Execute sudo](#execute-sudo)
- [Update your password](#update-your-password)
- [Update your email](#update-your-email)
- [Send verification email](#send-verification-email)
- [Verify email](#verify-email)
- [Send password reset email](#send-password-reset-email)
@@ -113,25 +112,10 @@
* `DELETE /sessions/1` will destroy the session with an ID of 1.
Returns `204 No Content` if successful.
-
-### Execute sudo
-
-* `POST /sessions/sudo` will grant temporary access to sensitive information.
-
-###### Example JSON Request
-
-``` json
-{
- "password": "Secret1*2*3*4*5*6",
-}
-```
-
-Returns `204 No Content` if successful.
-
## Password
### Update your password
* `PUT /password` allows changing your password.
@@ -156,9 +140,10 @@
###### Example JSON Request
``` json
{
+ "current_password": "Secret1*2*3*4*5*6",
"email": "new_email@hey.com"
}
```
This endpoint will return 200 OK with the current JSON representation of the user if the update was a success.