Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 498 for user (0.18 sec)

  1. docs/ko/docs/tutorial/security/get-current-user.md

        {!> ../../../docs_src/security/tutorial002_py310.py!}
        ```
    
    ## `get_current_user` 의존성 생성하기
    
    의존성 `get_current_user`를 만들어 봅시다.
    
    의존성이 하위 의존성을 가질 수 있다는 것을 기억하십니까?
    
    `get_current_user`는 이전에 생성한 것과 동일한 `oauth2_scheme`과 종속성을 갖게 됩니다.
    
    이전에 *경로 작동*에서 직접 수행했던 것과 동일하게 새 종속성 `get_current_user`는 하위 종속성 `oauth2_scheme`에서 `str`로 `token`을 수신합니다.
    
    === "파이썬 3.7 이상"
    
        ```Python hl_lines="25"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  2. tests/preload_test.go

    	}
    
    	var user4 *User
    	DB.Preload("Pets.Toy").Find(&user4, "id = ?", user.ID)
    	if len(user4.Pets) != 0 {
    		t.Fatalf("User.Pet[0] was deleted and should not exist.")
    	}
    
    	var user5 User
    	DB.Unscoped().Preload(clause.Associations+"."+clause.Associations).Find(&user5, "id = ?", user.ID)
    	CheckUserUnscoped(t, user5, user)
    
    	var user6 *User
    	DB.Unscoped().Preload("Pets.Toy").Find(&user6, "id = ?", user.ID)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users.go

    		return
    	}
    
    	var targetAccount string
    
    	// If listing is requested for a specific user (who is not the request
    	// sender), check that the user has permissions.
    	user := r.Form.Get("user")
    	if user != "" && user != cred.AccessKey {
    		if !globalIAMSys.IsAllowed(policy.Args{
    			AccountName:     cred.AccessKey,
    			Groups:          cred.Groups,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 77.3K bytes
    - Viewed (0)
  4. chainable_api.go

    //
    //	// Find the first user with name jinzhu
    //	db.Where("name = ?", "jinzhu").First(&user)
    //	// Find the first user with name jinzhu and age 20
    //	db.Where(&User{Name: "jinzhu", Age: 20}).First(&user)
    //	// Find the first user with name jinzhu and age not equal to 20
    //	db.Where("name = ?", "jinzhu").Where("age <> ?", "20").First(&user)
    //
    // [docs]: https://gorm.io/docs/query.html#Conditions
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  5. schema/relationship_test.go

    	type User struct {
    		ID        int32 `gorm:"primaryKey"`
    		Name      string
    		CreatorID *int32
    		Creator   *User
    	}
    
    	checkStructRelation(t, &User{}, Relation{
    		Name: "Creator", Type: schema.BelongsTo, Schema: "User", FieldSchema: "User",
    		References: []Reference{{"ID", "User", "CreatorID", "User", "", false}},
    	})
    }
    
    func TestSelfReferentialBelongsToOverrideReferences(t *testing.T) {
    	type User struct {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/extra-models.md

    )
    ```
    
    Or more exactly, using `user_dict` directly, with whatever contents it might have in the future:
    
    ```Python
    UserInDB(
        username = user_dict["username"],
        password = user_dict["password"],
        email = user_dict["email"],
        full_name = user_dict["full_name"],
    )
    ```
    
    #### A Pydantic model from the contents of another
    
    As in the example above we got `user_dict` from `user_in.dict()`, this code:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  7. docs/en/docs/tutorial/security/simple-oauth2.md

        ```
    
    #### About `**user_dict`
    
    `UserInDB(**user_dict)` means:
    
    *Pass the keys and values of the `user_dict` directly as key-value arguments, equivalent to:*
    
    ```Python
    UserInDB(
        username = user_dict["username"],
        email = user_dict["email"],
        full_name = user_dict["full_name"],
        disabled = user_dict["disabled"],
        hashed_password = user_dict["hashed_password"],
    )
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  8. docs/uk/docs/fastapi-people.md

    Привіт! 👋
    
    Це я:
    
    {% if people %}
    <div class="user-list user-list-center">
    {% for user in people.maintainers %}
    
    <div class="user"><a href="{{ user.url }}" target="_blank"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Answers: {{ user.answers }}</div><div class="count">Pull Requests: {{ user.prs }}</div></div>
    {% endfor %}
    
    </div>
    {% endif %}
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  9. docs/pt/docs/fastapi-people.md

    Ei! 👋
    
    Este sou eu:
    
    {% if people %}
    <div class="user-list user-list-center">
    {% for user in people.maintainers %}
    
    <div class="user"><a href="{{ user.url }}" target="_blank"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Respostas: {{ user.answers }}</div><div class="count">Pull Requests: {{ user.prs }}</div></div>
    {% endfor %}
    
    </div>
    {% endif %}
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  10. internal/config/identity/ldap/ldap.go

    	// Lookup user DN
    	bindDN, err = l.LDAP.LookupUserDN(conn, username)
    	if err != nil {
    		errRet := fmt.Errorf("Unable to find user DN: %w", err)
    		return "", nil, errRet
    	}
    
    	// Authenticate the user credentials.
    	err = conn.Bind(bindDN, password)
    	if err != nil {
    		errRet := fmt.Errorf("LDAP auth failed for DN %s: %w", bindDN, err)
    		return "", nil, errRet
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
Back to top