summaryrefslogtreecommitdiffstats
path: root/cobbler/webui/CobblerWeb.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-04-03 15:15:23 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-04-03 15:15:23 -0400
commit07443e6ec0a7d2c3c370b944d066a074692ca139 (patch)
tree047924148c3024c59b51d3dc398df3493c468954 /cobbler/webui/CobblerWeb.py
parentae3014f2498a8566acbe4439eb0a6916456ce27f (diff)
downloadthird_party-cobbler-07443e6ec0a7d2c3c370b944d066a074692ca139.tar.gz
third_party-cobbler-07443e6ec0a7d2c3c370b944d066a074692ca139.tar.xz
third_party-cobbler-07443e6ec0a7d2c3c370b944d066a074692ca139.zip
If logging in with token and not a new login, grab the username from
the token for use in filling in form data.
Diffstat (limited to 'cobbler/webui/CobblerWeb.py')
-rw-r--r--cobbler/webui/CobblerWeb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cobbler/webui/CobblerWeb.py b/cobbler/webui/CobblerWeb.py
index ee2d700..e186f35 100644
--- a/cobbler/webui/CobblerWeb.py
+++ b/cobbler/webui/CobblerWeb.py
@@ -60,6 +60,7 @@ class CobblerWeb(object):
# validate that our token is still good
try:
self.remote.token_check(self.token)
+ self.username = self.remote.get_user_from_token(self.token)
return True
except Exception, e:
if str(e).find("invalid token") != -1: