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.
|