diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-04-03 15:15:23 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-04-03 15:15:23 -0400 |
commit | 07443e6ec0a7d2c3c370b944d066a074692ca139 (patch) | |
tree | 047924148c3024c59b51d3dc398df3493c468954 /cobbler/webui/CobblerWeb.py | |
parent | ae3014f2498a8566acbe4439eb0a6916456ce27f (diff) | |
download | third_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.py | 1 |
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: |