Fossil SCM

Improve the debug information available when using Login Groups.

andybradford 2017-09-07 05:04 trunk
Commit 7f4393dab497e12f7414703e5582fbf897b73b191986c5d313d2e838cfd89d86
1 file changed +7 -1
+7 -1
--- src/setup.c
+++ src/setup.c
@@ -1405,18 +1405,24 @@
14051405
@ <p><form action="%s(g.zTop)/setup_login_group" method="post"><div>
14061406
login_insert_csrf_secret();
14071407
@ To leave this login group press
14081408
@ <input type="submit" value="Leave Login Group" name="leave">
14091409
@ </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.
14101413
@ <hr /><h2>Implementation Details</h2>
14111414
@ <p>The following are fields from the CONFIG table related to login-groups,
14121415
@ provided here for instructional and debugging purposes:</p>
14131416
@ <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>
14151420
db_prepare(&q, "SELECT name, value, datetime(mtime,'unixepoch') FROM config"
14161421
" WHERE name GLOB 'peer-*'"
14171422
" OR name GLOB 'project-*'"
1423
+ " OR name GLOB 'login-group-*'"
14181424
" ORDER BY name");
14191425
while( db_step(&q)==SQLITE_ROW ){
14201426
@ <tr><td>%h(db_column_text(&q,0))</td>
14211427
@ <td>%h(db_column_text(&q,1))</td>
14221428
@ <td>%h(db_column_text(&q,2))</td></tr>
14231429
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button