Fossil SCM
Improve the debug information available when using Login Groups.
Commit
7f4393dab497e12f7414703e5582fbf897b73b191986c5d313d2e838cfd89d86
Parent
19497648d70fb1b…
1 file changed
+7
-1
+7
-1
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -1405,18 +1405,24 @@ | ||
| 1405 | 1405 | @ <p><form action="%s(g.zTop)/setup_login_group" method="post"><div> |
| 1406 | 1406 | login_insert_csrf_secret(); |
| 1407 | 1407 | @ To leave this login group press |
| 1408 | 1408 | @ <input type="submit" value="Leave Login Group" name="leave"> |
| 1409 | 1409 | @ </form></p> |
| 1410 | + @ <br />For best results, use the same number of <a href="setup_access#ipt"> | |
| 1411 | + @ IP octets</a> in the login cookie across all repositories in the | |
| 1412 | + @ same Login Group. | |
| 1410 | 1413 | @ <hr /><h2>Implementation Details</h2> |
| 1411 | 1414 | @ <p>The following are fields from the CONFIG table related to login-groups, |
| 1412 | 1415 | @ provided here for instructional and debugging purposes:</p> |
| 1413 | 1416 | @ <table border='1' id='configTab'> |
| 1414 | - @ <thead><tr><th>Config.Name<th>Config.Value<th>Config.mtime</tr></thead><tbody> | |
| 1417 | + @ <thead><tr> | |
| 1418 | + @ <th>Config.Name<th>Config.Value<th>Config.mtime</tr> | |
| 1419 | + @ </thead><tbody> | |
| 1415 | 1420 | db_prepare(&q, "SELECT name, value, datetime(mtime,'unixepoch') FROM config" |
| 1416 | 1421 | " WHERE name GLOB 'peer-*'" |
| 1417 | 1422 | " OR name GLOB 'project-*'" |
| 1423 | + " OR name GLOB 'login-group-*'" | |
| 1418 | 1424 | " ORDER BY name"); |
| 1419 | 1425 | while( db_step(&q)==SQLITE_ROW ){ |
| 1420 | 1426 | @ <tr><td>%h(db_column_text(&q,0))</td> |
| 1421 | 1427 | @ <td>%h(db_column_text(&q,1))</td> |
| 1422 | 1428 | @ <td>%h(db_column_text(&q,2))</td></tr> |
| 1423 | 1429 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1405,18 +1405,24 @@ | |
| 1405 | @ <p><form action="%s(g.zTop)/setup_login_group" method="post"><div> |
| 1406 | login_insert_csrf_secret(); |
| 1407 | @ To leave this login group press |
| 1408 | @ <input type="submit" value="Leave Login Group" name="leave"> |
| 1409 | @ </form></p> |
| 1410 | @ <hr /><h2>Implementation Details</h2> |
| 1411 | @ <p>The following are fields from the CONFIG table related to login-groups, |
| 1412 | @ provided here for instructional and debugging purposes:</p> |
| 1413 | @ <table border='1' id='configTab'> |
| 1414 | @ <thead><tr><th>Config.Name<th>Config.Value<th>Config.mtime</tr></thead><tbody> |
| 1415 | db_prepare(&q, "SELECT name, value, datetime(mtime,'unixepoch') FROM config" |
| 1416 | " WHERE name GLOB 'peer-*'" |
| 1417 | " OR name GLOB 'project-*'" |
| 1418 | " ORDER BY name"); |
| 1419 | while( db_step(&q)==SQLITE_ROW ){ |
| 1420 | @ <tr><td>%h(db_column_text(&q,0))</td> |
| 1421 | @ <td>%h(db_column_text(&q,1))</td> |
| 1422 | @ <td>%h(db_column_text(&q,2))</td></tr> |
| 1423 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1405,18 +1405,24 @@ | |
| 1405 | @ <p><form action="%s(g.zTop)/setup_login_group" method="post"><div> |
| 1406 | login_insert_csrf_secret(); |
| 1407 | @ To leave this login group press |
| 1408 | @ <input type="submit" value="Leave Login Group" name="leave"> |
| 1409 | @ </form></p> |
| 1410 | @ <br />For best results, use the same number of <a href="setup_access#ipt"> |
| 1411 | @ IP octets</a> in the login cookie across all repositories in the |
| 1412 | @ same Login Group. |
| 1413 | @ <hr /><h2>Implementation Details</h2> |
| 1414 | @ <p>The following are fields from the CONFIG table related to login-groups, |
| 1415 | @ provided here for instructional and debugging purposes:</p> |
| 1416 | @ <table border='1' id='configTab'> |
| 1417 | @ <thead><tr> |
| 1418 | @ <th>Config.Name<th>Config.Value<th>Config.mtime</tr> |
| 1419 | @ </thead><tbody> |
| 1420 | db_prepare(&q, "SELECT name, value, datetime(mtime,'unixepoch') FROM config" |
| 1421 | " WHERE name GLOB 'peer-*'" |
| 1422 | " OR name GLOB 'project-*'" |
| 1423 | " OR name GLOB 'login-group-*'" |
| 1424 | " ORDER BY name"); |
| 1425 | while( db_step(&q)==SQLITE_ROW ){ |
| 1426 | @ <tr><td>%h(db_column_text(&q,0))</td> |
| 1427 | @ <td>%h(db_column_text(&q,1))</td> |
| 1428 | @ <td>%h(db_column_text(&q,2))</td></tr> |
| 1429 |