gmail notification stuff: do not take the risk to show our password [browser history may have exact link and thus link in plain text]

This commit is contained in:
Nikos Kouremenos 2006-10-02 01:04:54 +00:00
parent 6f48b3bcb8
commit 1d927b4ff4
2 changed files with 4 additions and 12 deletions

View File

@ -1778,12 +1778,8 @@ class Interface:
# Open the window
self.roster.open_event(account, fjid, event)
elif type_ == 'gmail':
if gajim.config.get_per('accounts', account, 'savepass'):
url = ('http://www.google.com/accounts/ServiceLoginAuth?service=mail&Email=%s&Passwd=%s&continue=https://mail.google.com/mail') %\
(urllib.quote(gajim.config.get_per('accounts', account, 'name')),
urllib.quote(gajim.config.get_per('accounts', account, 'password')))
else:
url = ('http://mail.google.com/')
url = 'http://mail.google.com/mail?account_id=%s' % urllib.quote(
gajim.config.get_per('accounts', account, 'name'))
helpers.launch_browser_mailer('url', url)
elif type_ == 'gc-invitation':
event = gajim.events.get_first_event(account, jid, type_)

View File

@ -1783,12 +1783,8 @@ class RosterWindow:
config.AccountModificationWindow(account)
def on_open_gmail_inbox(self, widget, account):
if gajim.config.get_per('accounts', account, 'savepass'):
url = ('http://www.google.com/accounts/ServiceLoginAuth?service=mail&Email=%s&Passwd=%s&continue=https://mail.google.com/mail') %\
(urllib.quote(gajim.config.get_per('accounts', account, 'name')),
urllib.quote(gajim.config.get_per('accounts', account, 'password')))
else:
url = ('http://mail.google.com/')
url = 'http://mail.google.com/mail?account_id=%s' % urllib.quote(
gajim.config.get_per('accounts', account, 'name'))
helpers.launch_browser_mailer('url', url)
def on_change_status_message_activate(self, widget, account):