Philipp Hörist pushed to branch master at gajim / gajim


Commits:
b7671671 by lovetox at 2020-07-02T22:48:28+02:00
Interface: Store password with correct backend

On account creation use the passwords module to store the password correctly

- - - - -
73d1350b by lovetox at 2020-07-02T22:50:39+02:00
Remove comment

- - - - -
30bfc9eb by lovetox at 2020-07-02T23:08:39+02:00
CertStore: Add cert to cache on add_certificate()

Otherwise the cert is only available after a restart

Fixes #10160

- - - - -


2 changed files:

- gajim/common/cert_store.py
- gajim/gui_interface.py


Changes:

=====================================
gajim/common/cert_store.py
=====================================
@@ -62,6 +62,7 @@ class CertificateStore:
 
     def add_certificate(self, certificate):
         log.info('Add certificate to trust store')
+        self._certs.append(certificate)
         pem = certificate.props.certificate_pem
         path = self._get_random_path()
         write_file_async(path,


=====================================
gajim/gui_interface.py
=====================================
@@ -1521,7 +1521,6 @@ class Interface:
             '%s@%s' % (username, domain))
         config['hostname'] = domain
         config['savepass'] = True
-        config['password'] = password
         config['anonymous_auth'] = anonymous
         config['autoconnect'] = True
         config['sync_with_global_status'] = True
@@ -1542,10 +1541,14 @@ class Interface:
         for opt in config:
             app.config.set_per('accounts', account, opt, config[opt])
 
+        # Password module depends on existing config
+        passwords.save_password(account, password)
+
         app.css_config.refresh()
-        # refresh accounts window
+
         # Action must be added before account window is updated
         app.app.add_account_actions(account)
+
         window = get_app_window('AccountsWindow')
         if window is not None:
             window.add_account(account)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/3e1dcf0178bdd4fc1683e3287d2b8cf9291d046a...30bfc9ebe3ab39152ed7a725af64c7a6b469dee4

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/3e1dcf0178bdd4fc1683e3287d2b8cf9291d046a...30bfc9ebe3ab39152ed7a725af64c7a6b469dee4
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to