Tahinli/forge
public0 watching
★ 0
| 1 | //! Writes to the security audit log. Recording never fails the request: a store error is logged |
| 2 | //! and the action continues. Passwords and tokens never go into an entry. |
| 3 | |
| 4 | use ; |
| 5 | use Value; |
| 6 | use Cx; |
| 7 | |
| 8 | use crateclient_ip; |
| 9 | |
| 10 | /// Who did it. `Anonymous` is an unauthenticated attempt, `Cli` is the admin command line. |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | /// What it was done to. Empty kind and id for actions with no object (such as a login). |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | /// Appends one entry. `cx` supplies the client IP for web requests; the CLI passes `None` and |
| 26 | /// gets an empty IP. `data` is an optional JSON object (`Value::Null` stores `{}`). |
| 27 | pub async |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 |