cht電腦資訊Language
adm Find login register

關於trac的login logout

guest
1subject: 關於trac的login logoutPromote 0 Bookmark 02013-04-15quote  

Hi!  各位好!

我想向各位請教一下...

我自己架設的trac只要登入過一次

登出之後卻依然可以不需要密碼就直接登入

除非我把瀏覽器的歷程清掉

請問要怎麼設定才能讓他每次登入都需要輸入密碼

謝謝各位!

guest
2subject: Promote 0 Bookmark 02013-04-15quote  

我忘記附上我的httpd.conf了!!

WSGIScriptAlias /trac D:/wsgi-scripts/trac.py

<Directory D:/wsgi-scripts>
    Order deny,allow
    Allow from all
</Directory>

<Location "/trac/login">
  AuthType Basic
  AuthName "Trac"
  AuthUserFile "D:/etc/account"
  Require valid-user
</Location>

guest
3subject: Promote 0 Bookmark 02013-04-18quote  

我從這裡找到解決方法

http://trac.edgewall.org/ticket/791#comment:103

使用 http://trac-hacks.org/wiki/AccountManagerPlugin

guest
4subject: Promote 0 Bookmark 02013-04-18quote  

httpd.conf要將 /trac/login 的部分刪除

WSGIScriptAlias /trac D:/wsgi-scripts/trac.py

<Directory D:/wsgi-scripts>
    Order deny,allow
    Allow from all
</Directory>

cht電腦資訊Language
adm Find login register
views:12047