Fossil

Check-in [7b700dfa]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make an entry in the access log when a login transfers from one member of a login group to another.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7b700dfacd9d7d5b7d6c3b57e58f7f2647b1e121
User & Date: drh 2011-04-15 20:42:23
Context
2011-04-18
12:01
Fix an invalid call to free() that occurs when "fossil add ." is run. Ticket [157ef3e5a7a06b]. check-in: ed5c19cd user: drh tags: trunk
2011-04-15
20:42
Make an entry in the access log when a login transfers from one member of a login group to another. check-in: 7b700dfa user: drh tags: trunk
15:36
Use a target= field on the hyperlink of the annotation web page. check-in: 0e477a48 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/login.c.

621
622
623
624
625
626
627

628
629
630
631
632
633
634
      /* Cookies of the form "HASH/CODE/USER".  Search first in the
      ** local user table, then the user table for project CODE if we
      ** are part of a login-group.
      */
      uid = login_find_user(zUser, zHash, zRemoteAddr);
      if( uid==0 && login_transfer_credentials(zUser,zArg,zHash,zRemoteAddr) ){
        uid = login_find_user(zUser, zHash, zRemoteAddr);

      }
    }
    sqlite3_snprintf(sizeof(g.zCsrfToken), g.zCsrfToken, "%.10s", zHash);
  }

  /* If no user found and the REMOTE_USER environment variable is set,
  ** the accept the value of REMOTE_USER as the user.







>







621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
      /* Cookies of the form "HASH/CODE/USER".  Search first in the
      ** local user table, then the user table for project CODE if we
      ** are part of a login-group.
      */
      uid = login_find_user(zUser, zHash, zRemoteAddr);
      if( uid==0 && login_transfer_credentials(zUser,zArg,zHash,zRemoteAddr) ){
        uid = login_find_user(zUser, zHash, zRemoteAddr);
        if( uid ) record_login_attempt(zUser, zIpAddr, 1);
      }
    }
    sqlite3_snprintf(sizeof(g.zCsrfToken), g.zCsrfToken, "%.10s", zHash);
  }

  /* If no user found and the REMOTE_USER environment variable is set,
  ** the accept the value of REMOTE_USER as the user.