Fossil SCM
Only skip the login card if the REMOTE_USER authentication setting is enabled.
Commit
3f8ddc28c6efc7d6483f73521053165c3887150b
Parent
cf471cbb3f6fe7d…
1 file changed
+2
-1
+2
-1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -578,11 +578,12 @@ | ||
| 578 | 578 | defossilize(zLogin); |
| 579 | 579 | |
| 580 | 580 | if( fossil_strcmp(zLogin, "nobody")==0 || fossil_strcmp(zLogin,"anonymous")==0 ){ |
| 581 | 581 | return 0; /* Anybody is allowed to sync as "nobody" or "anonymous" */ |
| 582 | 582 | } |
| 583 | - if( fossil_strcmp(P("REMOTE_USER"), zLogin)==0 ){ | |
| 583 | + if( fossil_strcmp(P("REMOTE_USER"), zLogin)==0 | |
| 584 | + && db_get_boolean("remote_user_ok",0) ){ | |
| 584 | 585 | return 0; /* Accept Basic Authorization */ |
| 585 | 586 | } |
| 586 | 587 | db_prepare(&q, |
| 587 | 588 | "SELECT pw, cap, uid FROM user" |
| 588 | 589 | " WHERE login=%Q" |
| 589 | 590 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -578,11 +578,12 @@ | |
| 578 | defossilize(zLogin); |
| 579 | |
| 580 | if( fossil_strcmp(zLogin, "nobody")==0 || fossil_strcmp(zLogin,"anonymous")==0 ){ |
| 581 | return 0; /* Anybody is allowed to sync as "nobody" or "anonymous" */ |
| 582 | } |
| 583 | if( fossil_strcmp(P("REMOTE_USER"), zLogin)==0 ){ |
| 584 | return 0; /* Accept Basic Authorization */ |
| 585 | } |
| 586 | db_prepare(&q, |
| 587 | "SELECT pw, cap, uid FROM user" |
| 588 | " WHERE login=%Q" |
| 589 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -578,11 +578,12 @@ | |
| 578 | defossilize(zLogin); |
| 579 | |
| 580 | if( fossil_strcmp(zLogin, "nobody")==0 || fossil_strcmp(zLogin,"anonymous")==0 ){ |
| 581 | return 0; /* Anybody is allowed to sync as "nobody" or "anonymous" */ |
| 582 | } |
| 583 | if( fossil_strcmp(P("REMOTE_USER"), zLogin)==0 |
| 584 | && db_get_boolean("remote_user_ok",0) ){ |
| 585 | return 0; /* Accept Basic Authorization */ |
| 586 | } |
| 587 | db_prepare(&q, |
| 588 | "SELECT pw, cap, uid FROM user" |
| 589 | " WHERE login=%Q" |
| 590 |