Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,587 for User (0.04 sec)

  1. chainable_api.go

    //	// assign an email if the record is not found
    //	db.Where(User{Name: "non_existing"}).Attrs(User{Email: "******@****.***"}).FirstOrInit(&user)
    //	// user -> User{Name: "non_existing", Email: "******@****.***"}
    //
    //	// assign an email if the record is not found, otherwise ignore provided email
    //	db.Where(User{Name: "jinzhu"}).Attrs(User{Email: "******@****.***"}).FirstOrInit(&user)
    //	// user -> User{Name: "jinzhu", Age: 20}
    //
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. tests/prepared_stmt_test.go

    	defer cancel()
    	txCtx := tx.WithContext(ctx)
    
    	user := *GetUser("prepared_stmt", Config{})
    
    	txCtx.Create(&user)
    
    	var result1 User
    	if err := txCtx.Find(&result1, user.ID).Error; err != nil {
    		t.Fatalf("no error should happen but got %v", err)
    	}
    
    	time.Sleep(time.Second)
    
    	var result2 User
    	if err := tx.Find(&result2, user.ID).Error; err != nil {
    		t.Fatalf("no error should happen but got %v", err)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:02:05 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. docs_src/python_types/tutorial011.py

    from pydantic import BaseModel
    
    
    class User(BaseModel):
        id: int
        name: str = "John Doe"
        signup_ts: Union[datetime, None] = None
        friends: List[int] = []
    
    
    external_data = {
        "id": "123",
        "signup_ts": "2017-06-01 12:22",
        "friends": [1, "2", b"3"],
    }
    user = User(**external_data)
    print(user)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Sep 02 15:56:35 UTC 2023
    - 498 bytes
    - Viewed (0)
  4. docs/multi-user/README.md

    ```
    
    ### 4. Disable user
    
    Disable user `newuser`.
    
    ```
    mc admin user disable myminio newuser
    ```
    
    Disable group `newgroup`.
    
    ```
    mc admin group disable myminio newgroup
    ```
    
    ### 5. Remove user
    
    Remove the user `newuser`.
    
    ```
    mc admin user remove myminio newuser
    ```
    
    Remove the user `newuser` from a group.
    
    ```
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 21 06:38:06 UTC 2023
    - 8K bytes
    - Viewed (0)
  5. internal/config/identity/ldap/ldap.go

    	}
    	defer conn.Close()
    
    	// Bind to the lookup user account
    	if err = l.LDAP.LookupBind(conn); err != nil {
    		return nil, nil, err
    	}
    
    	// Lookup user DN
    	lookupResult, err := l.LDAP.LookupUsername(conn, username)
    	if err != nil {
    		errRet := fmt.Errorf("Unable to find user DN: %w", err)
    		return nil, nil, errRet
    	}
    
    	// Authenticate the user credentials.
    	err = conn.Bind(lookupResult.ActualDN, password)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 01:04:53 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  6. cmd/api-utils_test.go

    	}{
    		{"a b", "", "a b"},
    		{"a b", "url", "a+b"},
    		{"p- ", "url", "p-+"},
    		{"p-%", "url", "p-%25"},
    		{"p/", "url", "p/"},
    		{"p/", "url", "p/"},
    		{"~user", "url", "%7Euser"},
    		{"*user", "url", "*user"},
    		{"user+password", "url", "user%2Bpassword"},
    		{"_user", "url", "_user"},
    		{"firstname.lastname", "url", "firstname.lastname"},
    	}
    	for i, testCase := range testCases {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  7. cmd/kms-handlers_test.go

    		// Create key test
    		{
    			name:   "create key as user with no policy want forbidden",
    			method: http.MethodPost,
    			path:   kmsKeyCreatePath,
    			query:  map[string]string{"key-id": "new-test-key"},
    			asRoot: false,
    
    			wantStatusCode: http.StatusForbidden,
    			wantResp:       []string{"AccessDenied"},
    		},
    		{
    			name:   "create key as user with no resources specified want success",
    			method: http.MethodPost,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/settings/MavenSettingsBuilder.java

         * @throws IOException if any
         * @throws XmlPullParserException if any
         */
        Settings buildSettings(File userSettingsFile) throws IOException, XmlPullParserException;
    
        /**
         * @param userSettingsFile a given user settings file
         * @param useCachedSettings if true, doesn't reload the user settings
         * @return a <code>Settings</code> object from the user settings file.
         * @throws IOException if any
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/auth/chain/AuthenticationChain.java

     */
    package org.codelibs.fess.auth.chain;
    
    import org.codelibs.fess.es.user.exentity.User;
    
    public interface AuthenticationChain {
    
        void update(User user);
    
        void delete(User user);
    
        boolean changePassword(String username, String password);
    
        User load(User user);
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 899 bytes
    - Viewed (0)
  10. schema/field_test.go

    			Birthday: tests.Now(),
    			Active:   true,
    		}
    		reflectValue = reflect.ValueOf(&user)
    	)
    
    	// test valuer
    	values := map[string]interface{}{
    		"name":       user.Name,
    		"id":         user.ID,
    		"created_at": user.CreatedAt,
    		"updated_at": user.UpdatedAt,
    		"deleted_at": user.DeletedAt,
    		"age":        user.Age,
    		"birthday":   user.Birthday,
    		"active":     true,
    	}
    	checkField(t, userSchema, reflectValue, values)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Feb 19 09:02:53 UTC 2022
    - 12.7K bytes
    - Viewed (0)
Back to top