Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 231 - 240 of 577 for user_me (0.85 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs_src/request_form_models/tutorial002_an_py310.py

    from typing import Annotated
    
    from fastapi import FastAPI, Form
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class FormData(BaseModel):
        username: str
        password: str
        model_config = {"extra": "forbid"}
    
    
    @app.post("/login/")
    async def login(data: Annotated[FormData, Form()]):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 307 bytes
    - Click Count (0)
  2. src/main/webapp/WEB-INF/view/login/index.jsp

    				<la:form styleId="login" method="post">
    					<div class="input-group mb-3">
    						<c:set var="ph_username">
    							<la:message key="labels.login.placeholder_username" />
    						</c:set>
    						<la:text property="username" styleId="username"
    							class="form-control" placeholder="${ph_username}" />
    						<div class="input-group-append">
    							<span class="input-group-text">
    								<i class="fa fa-user fa-fw" aria-hidden="true"></i>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 13 05:54:52 GMT 2025
    - 3K bytes
    - Click Count (1)
  3. docs_src/path_operation_configuration/tutorial002_py310.py

        return item
    
    
    @app.get("/items/", tags=["items"])
    async def read_items():
        return [{"name": "Foo", "price": 42}]
    
    
    @app.get("/users/", tags=["users"])
    async def read_users():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 12:07:26 GMT 2026
    - 524 bytes
    - Click Count (0)
  4. docs_src/openapi_webhooks/tutorial001_py310.py

    from datetime import datetime
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Subscription(BaseModel):
        username: str
        monthly_fee: float
        start_date: datetime
    
    
    @app.webhooks.post("new-subscription")
    def new_subscription(body: Subscription):
        """
        When a new user subscribes to your service we'll send you a POST request with this
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 550 bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/path-params.md

    在建立「路徑操作」時,你可能會遇到有固定路徑的情況。
    
    像是 `/users/me`,假設它用來取得目前使用者的資料。
    
    然後你也可能有一個路徑 `/users/{user_id}` 用來依使用者 ID 取得特定使用者的資料。
    
    因為「路徑操作」會依宣告順序來比對,你必須確保 `/users/me` 的路徑在 `/users/{user_id}` 之前宣告:
    
    {* ../../docs_src/path_params/tutorial003_py310.py hl[6,11] *}
    
    否則,`/users/{user_id}` 的路徑也會匹配 `/users/me`,並「認為」它收到一個值為 `"me"` 的 `user_id` 參數。
    
    同樣地,你不能重新定義同一路徑操作:
    
    {* ../../docs_src/path_params/tutorial003b_py310.py hl[6,11] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  6. src/main/config/es/fess_config_file_authentication.json

                "type" : "keyword"
              },
              "updatedBy" : {
                "type" : "keyword"
              },
              "updatedTime" : {
                "type" : "long"
              },
              "username" : {
                "type" : "keyword"
              }
            }
          }
        },
        "settings" : {
          "index" : {
            "creation_date" : "1509021053135",
            "number_of_shards" : "5",
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 02 13:14:56 GMT 2021
    - 1.2K bytes
    - Click Count (0)
  7. docs_src/body_multiple_params/tutorial002_py310.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    class User(BaseModel):
        username: str
        full_name: str | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item, user: User):
        results = {"item_id": item_id, "item": item, "user": user}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 446 bytes
    - Click Count (0)
  8. cmd/sftp-server_test.go

    	return []byte{}
    }
    
    func (m *MockConnMeta) RemoteAddr() net.Addr {
    	return nil
    }
    
    func (m *MockConnMeta) LocalAddr() net.Addr {
    	return nil
    }
    
    func newSSHConnMock(username string) ssh.ConnMetadata {
    	return &MockConnMeta{username: username}
    }
    
    func TestSFTPAuthentication(t *testing.T) {
    	for i, testCase := range iamTestSuites {
    		t.Run(
    			fmt.Sprintf("Test: %d, ServerType: %s", i+1, testCase.ServerTypeDescription),
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Feb 27 18:43:32 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  9. docs_src/body_multiple_params/tutorial003_an_py310.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    class User(BaseModel):
        username: str
        full_name: str | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        item_id: int, item: Item, user: User, importance: Annotated[int, Body()]
    ):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 550 bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/profile/ProfileAction.java

            }
            final String username = getUserBean().get().getUserId();
            try {
                userService.changePassword(username, form.newPassword);
                saveInfo(messages -> messages.addSuccessChangedPassword(GLOBAL));
            } catch (final Exception e) {
                logger.warn("Failed to change password for {}", username, e);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 06:18:24 GMT 2026
    - 6.3K bytes
    - Click Count (0)
Back to Top