aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-web/tui
diff options
context:
space:
mode:
authorArturo FilastoĢ€ <hellais@torproject.org>2011-08-11 18:21:48 +0200
committerArturo FilastoĢ€ <hellais@torproject.org>2011-08-11 18:21:48 +0200
commit423d7556b1af6159bc3a1d6219bcd0ec704dce7f (patch)
tree23e9d9b47cc43c1232c0f55fe58cc95ccc873c14 /packages/torouter-web/tui
parent30bf29091b7dd5531c5a096e09f3cdb6331b342f (diff)
downloadtorouter-423d7556b1af6159bc3a1d6219bcd0ec704dce7f.tar.gz
torouter-423d7556b1af6159bc3a1d6219bcd0ec704dce7f.zip
Add user name and password to config file
Diffstat (limited to 'packages/torouter-web/tui')
-rw-r--r--packages/torouter-web/tui/utils/session.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/torouter-web/tui/utils/session.py b/packages/torouter-web/tui/utils/session.py
index 375b6bc..61c04cd 100644
--- a/packages/torouter-web/tui/utils/session.py
+++ b/packages/torouter-web/tui/utils/session.py
@@ -1,4 +1,5 @@
import web
+import config
# The main session class
@@ -15,7 +16,7 @@ def is_logged():
return web.config._session.login
def check_login(data):
- if (data.user == "test") and (data.password == "test"):
+ if (data.user == config.authinfo[0]) and (data.password == config.authinfo[1]):
web.config._session.login = 1
return 0
return 1