- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for corrente (0.22 sec)
-
docs/zh/docs/tutorial/security/simple-oauth2.md
这是开发者必须在代码中自行完成的工作,并且要确保使用这些 JSON 的键。 这几乎是唯一需要开发者牢记在心,并按规范要求正确执行的事。 **FastAPI** 则负责处理其它的工作。 ## 更新依赖项 接下来,更新依赖项。 使之仅在当前用户为激活状态时,才能获取 `current_user`。 为此,要再创建一个依赖项 `get_current_active_user`,此依赖项以 `get_current_user` 依赖项为基础。 如果用户不存在,或状态为未激活,这两个依赖项都会返回 HTTP 错误。 因此,在端点中,只有当用户存在、通过身份验证、且状态为激活时,才能获得该用户: ```Python hl_lines="58-67 69-72 90"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.8K bytes - Viewed (0) -
docs/em/docs/tutorial/security/simple-oauth2.md
⚫️ 🌖 🕴 👜 👈 👆 ✔️ 💭 ☑ 👆, 🛠️ ⏮️ 🔧. 🎂, **FastAPI** 🍵 ⚫️ 👆. ## ℹ 🔗 🔜 👥 🔜 ℹ 👆 🔗. 👥 💚 🤚 `current_user` *🕴* 🚥 👉 👩💻 🦁. , 👥 ✍ 🌖 🔗 `get_current_active_user` 👈 🔄 ⚙️ `get_current_user` 🔗. 👯♂️ 👉 🔗 🔜 📨 🇺🇸🔍 ❌ 🚥 👩💻 🚫 🔀, ⚖️ 🚥 🔕. , 👆 🔗, 👥 🔜 🕴 🤚 👩💻 🚥 👩💻 🔀, ☑ 🔓, & 🦁: === "🐍 3️⃣.6️⃣ & 🔛"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.9K bytes - Viewed (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
## Update the dependencies Now we are going to update our dependencies. We want to get the `current_user` *only* if this user is active. So, we create an additional dependency `get_current_active_user` that in turn uses `get_current_user` as a dependency. Both of these dependencies will just return an HTTP error if the user doesn't exist, or if is inactive.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 12.5K bytes - Viewed (0)