]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/TMPL__95__VAR_IS__95__ADMIN/comment_6_3db50264e01c8fad2e5567b5a9c7b6dc._comment
Change Projects link to point to projects DB
[ikiwiki.git] / doc / forum / TMPL__95__VAR_IS__95__ADMIN / comment_6_3db50264e01c8fad2e5567b5a9c7b6dc._comment
1 [[!comment format=mdwn
2  username="http://smcv.pseudorandom.co.uk/"
3  nickname="smcv"
4  subject="comment 6"
5  date="2011-02-23T18:08:37Z"
6  content="""
7 > I'm fuzzy on the log in bit, I don't know how to bring up a log in page in IkiWiki
8
9 Cheap hack: make a link to `cgiurl(do => prefs)` and the user will have
10 to press Back a couple of times when they've logged in :-)
11
12 Less-cheap hack: have a CGI plugin that responds to `do=login` by doing
13 basically the same thing as `IkiWiki::needsignin`, but instead of
14 returning to the `QUERY_STRING`, return to the HTTP referer, or
15 a page whose name is passed in the query string, or some such.
16
17 > If I were going to do this I'd want to have a log out button appear
18 > when the user is logged in. Is it possible to add a log out function to the same plugin?
19
20 I don't see why not; you could create it from Javascript for logged-in
21 users only. That'd close the bug [[bugs/logout in ikiwiki]] (see that
22 bug for related ideas).
23 """]]