소스 검색

pre-login hook doc: add a note about partial updates

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 2 년 전
부모
커밋
ebdda1b62e
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      docs/dynamic-user-mod.md

+ 3 - 1
docs/dynamic-user-mod.md

@@ -22,12 +22,14 @@ The request body will contain the user trying to login serialized as JSON. If no
 
 Actions defined for user's updates will not be executed in this case and an already logged in user with the same username will not be disconnected, you have to handle these things yourself.
 
-The JSON response can include only the fields to update instead of the full user. For example, if you want to disable the user, you can return a response like this:
+For very simple use cases, the JSON response can include only the fields to update instead of the full user. For example, if you want to disable the user, you can return a response like this:
 
 ```json
 {"status": 0}
 ```
 
+This will not work as expected for sub-struct and lists.
+
 Please note that if you want to create a new user, the pre-login hook response must include all the mandatory user fields.
 
 The program hook must finish within 30 seconds, the HTTP hook will use the global configuration for HTTP clients.