doc: update documentation and comments
This commit is contained in:
parent
9d28d89eee
commit
b48a8fc711
2 changed files with 7 additions and 2 deletions
|
@ -81,7 +81,7 @@ Invalid Auth:
|
||||||
|
|
||||||
Generic responses which is used unless otherwise specified above.
|
Generic responses which is used unless otherwise specified above.
|
||||||
|
|
||||||
### POST /ldap/reset
|
### POST /ldap/recover/password
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -95,7 +95,7 @@ All responses:
|
||||||
{"result": "success"}
|
{"result": "success"}
|
||||||
```
|
```
|
||||||
|
|
||||||
### POST /ldap/reset/auth
|
### POST /ldap/recover/password/auth
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,9 +20,14 @@ async fn main() -> tide::Result<()> {
|
||||||
|
|
||||||
let mut app = tide::with_state(state);
|
let mut app = tide::with_state(state);
|
||||||
|
|
||||||
|
// for users to update their own profile
|
||||||
app.at("/ldap/update").post(account_update::submit);
|
app.at("/ldap/update").post(account_update::submit);
|
||||||
|
|
||||||
|
// for new users
|
||||||
app.at("/ldap/new/email").post(account_new::email::submit);
|
app.at("/ldap/new/email").post(account_new::email::submit);
|
||||||
app.at("/ldap/new/account").post(account_new::account::submit);
|
app.at("/ldap/new/account").post(account_new::account::submit);
|
||||||
|
|
||||||
|
// for folks who forget password/username
|
||||||
app.at("/ldap/recover/password").post(account_recover::password::reset);
|
app.at("/ldap/recover/password").post(account_recover::password::reset);
|
||||||
app.at("/ldap/recover/password/auth").post(account_recover::password::auth);
|
app.at("/ldap/recover/password/auth").post(account_recover::password::auth);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue