778
779
780
781
782
783
784
785
786
787
788
789
790
791
|
file_canonical_name(g.zRepositoryName, &fullName, 0);
zSelfRepo = fossil_strdup(blob_str(&fullName));
blob_reset(&fullName);
if( P("join")!=0 ){
login_group_join(zRepo, 1, zLogin, zPw, zNewName, &zErrMsg);
}else if( P("leave") ){
login_group_leave(&zErrMsg);
}
style_set_current_feature("setup");
style_header("Login Group Configuration");
if( zErrMsg ){
@ <p class="generalError">%s(zErrMsg)</p>
}
zGroup = login_group_name();
|
>
>
|
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
|
file_canonical_name(g.zRepositoryName, &fullName, 0);
zSelfRepo = fossil_strdup(blob_str(&fullName));
blob_reset(&fullName);
if( P("join")!=0 ){
login_group_join(zRepo, 1, zLogin, zPw, zNewName, &zErrMsg);
}else if( P("leave") ){
login_group_leave(&zErrMsg);
}else if( P("rotate") ){
captcha_secret_rotate();
}
style_set_current_feature("setup");
style_header("Login Group Configuration");
if( zErrMsg ){
@ <p class="generalError">%s(zErrMsg)</p>
}
zGroup = login_group_name();
|
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
|
@ <td>%h(zTitle)<td width="10"><td>%h(zRepo)</tr>
}
db_finalize(&q);
@ </table>
@
@ <p><form action="%R/setup_login_group" method="post"><div>
login_insert_csrf_secret();
@ To leave this login group press
@ <input type="submit" value="Leave Login Group" name="leave">
@ </form></p>
}
@ <hr><h2>Implementation Details</h2>
@ <p>The following are fields from the CONFIG table related to login-groups.
@ </p>
@ <table border='1' cellspacing="0" cellpadding="4"\
@ class='sortable' data-column-types='ttt' data-init-sort='1'>
|
|
>
>
>
|
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
|
@ <td>%h(zTitle)<td width="10"><td>%h(zRepo)</tr>
}
db_finalize(&q);
@ </table>
@
@ <p><form action="%R/setup_login_group" method="post"><div>
login_insert_csrf_secret();
@ <p>To leave this login group press:
@ <input type="submit" value="Leave Login Group" name="leave">
@ <p>To rotate the captcha-secret on all members of the login-group
@ so that they can all share anonymous logins, press:
@ <input type="submit" name="rotate" value="Rotate the captcha-secret">
@ </form></p>
}
@ <hr><h2>Implementation Details</h2>
@ <p>The following are fields from the CONFIG table related to login-groups.
@ </p>
@ <table border='1' cellspacing="0" cellpadding="4"\
@ class='sortable' data-column-types='ttt' data-init-sort='1'>
|