Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Use db_get_boolean() instead of db_get_int() for the localauth setting, since localauth is a boolean value. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
00638d9a838324db83c2d3a98f077aaa |
| User & Date: | drh 2025-04-18 15:32:14.634 |
Context
|
2025-04-18
| ||
| 16:12 | fix bug in /tktview: use relative instead of absolute link for version check-in: f1db9ead1d user: jkosche tags: trunk | |
| 15:32 | Use db_get_boolean() instead of db_get_int() for the localauth setting, since localauth is a boolean value. check-in: 00638d9a83 user: drh tags: trunk | |
| 14:59 | Improved error messages from "fossil push" and similar when the push is disallowed over ssh because "localauth" setting is enabled. check-in: 2765f04694 user: drh tags: trunk | |
Changes
Changes to src/login.c.
| ︙ | ︙ | |||
1414 1415 1416 1417 1418 1419 1420 |
** This feature allows the "fossil ui" command to give the user
** full access rights without having to log in.
*/
zIpAddr = PD("REMOTE_ADDR","nil");
if( ( cgi_is_loopback(zIpAddr)
|| (g.fSshClient & CGI_SSH_CLIENT)!=0 )
&& g.useLocalauth
| | | 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 |
** This feature allows the "fossil ui" command to give the user
** full access rights without having to log in.
*/
zIpAddr = PD("REMOTE_ADDR","nil");
if( ( cgi_is_loopback(zIpAddr)
|| (g.fSshClient & CGI_SSH_CLIENT)!=0 )
&& g.useLocalauth
&& db_get_boolean("localauth",0)==0
&& P("HTTPS")==0
){
char *zSeed;
if( g.localOpen ) zLogin = db_lget("default-user",0);
if( zLogin!=0 ){
uid = db_int(0, "SELECT uid FROM user WHERE login=%Q", zLogin);
}else{
|
| ︙ | ︙ |
Changes to src/xfer.c.
| ︙ | ︙ | |||
1121 1122 1123 1124 1125 1126 1127 |
/*
** Return a string that contains supplemental information about a
** "not authorized" error. The string might be empty if no additional
** information is available.
*/
static char *whyNotAuth(void){
| | | 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 |
/*
** Return a string that contains supplemental information about a
** "not authorized" error. The string might be empty if no additional
** information is available.
*/
static char *whyNotAuth(void){
if( g.useLocalauth && db_get_boolean("localauth",0)!=0 ){
return "\\sbecause\\sthe\\s'localauth'\\ssetting\\sis\\senabled";
}
return "";
}
/*
** Called when there is an attempt to transfer private content to and
|
| ︙ | ︙ |