diff options
Diffstat (limited to 'accounts')
-rw-r--r-- | accounts/gmail/gmailsettings.cpp | 1 | ||||
-rw-r--r-- | accounts/imap/imapsettings.cpp | 1 | ||||
-rw-r--r-- | accounts/imap/qml/Login.qml | 5 | ||||
-rw-r--r-- | accounts/kolabnow/kolabnowsettings.cpp | 2 | ||||
-rw-r--r-- | accounts/kolabnow/qml/Login.qml | 4 |
5 files changed, 2 insertions, 11 deletions
diff --git a/accounts/gmail/gmailsettings.cpp b/accounts/gmail/gmailsettings.cpp index 681ee1d4..ab050661 100644 --- a/accounts/gmail/gmailsettings.cpp +++ b/accounts/gmail/gmailsettings.cpp | |||
@@ -38,7 +38,6 @@ void GmailSettings::save() | |||
38 | 38 | ||
39 | mSmtpServer = "smtps://smtp.gmail.com:465"; | 39 | mSmtpServer = "smtps://smtp.gmail.com:465"; |
40 | mSmtpUsername = mEmailAddress; | 40 | mSmtpUsername = mEmailAddress; |
41 | mSmtpPassword = mImapPassword; | ||
42 | 41 | ||
43 | saveAccount(); | 42 | saveAccount(); |
44 | saveImapResource(); | 43 | saveImapResource(); |
diff --git a/accounts/imap/imapsettings.cpp b/accounts/imap/imapsettings.cpp index a9749878..1f338e83 100644 --- a/accounts/imap/imapsettings.cpp +++ b/accounts/imap/imapsettings.cpp | |||
@@ -33,7 +33,6 @@ void ImapSettings::load() | |||
33 | 33 | ||
34 | void ImapSettings::save() | 34 | void ImapSettings::save() |
35 | { | 35 | { |
36 | mSmtpPassword = mImapPassword; | ||
37 | saveAccount(); | 36 | saveAccount(); |
38 | saveImapResource(); | 37 | saveImapResource(); |
39 | saveMailtransportResource(); | 38 | saveMailtransportResource(); |
diff --git a/accounts/imap/qml/Login.qml b/accounts/imap/qml/Login.qml index 14e13e89..c9304b0e 100644 --- a/accounts/imap/qml/Login.qml +++ b/accounts/imap/qml/Login.qml | |||
@@ -33,7 +33,7 @@ Item { | |||
33 | } | 33 | } |
34 | 34 | ||
35 | function login(){ | 35 | function login(){ |
36 | settings.save() | 36 | settings.login({accountSecret: pwField.text}) |
37 | } | 37 | } |
38 | 38 | ||
39 | GridLayout { | 39 | GridLayout { |
@@ -53,10 +53,7 @@ Item { | |||
53 | id: pwField | 53 | id: pwField |
54 | Layout.fillWidth: true | 54 | Layout.fillWidth: true |
55 | focus: true | 55 | focus: true |
56 | |||
57 | placeholderText: qsTr("Password of your IMAP account") | 56 | placeholderText: qsTr("Password of your IMAP account") |
58 | text: settings.imapPassword | ||
59 | onTextChanged: settings.imapPassword = text | ||
60 | } | 57 | } |
61 | } | 58 | } |
62 | } | 59 | } |
diff --git a/accounts/kolabnow/kolabnowsettings.cpp b/accounts/kolabnow/kolabnowsettings.cpp index fe4c8c48..03c59ede 100644 --- a/accounts/kolabnow/kolabnowsettings.cpp +++ b/accounts/kolabnow/kolabnowsettings.cpp | |||
@@ -39,11 +39,9 @@ void KolabnowSettings::save() | |||
39 | 39 | ||
40 | mSmtpServer = "smtps://smtp.kolabnow.com:587"; | 40 | mSmtpServer = "smtps://smtp.kolabnow.com:587"; |
41 | mSmtpUsername = mEmailAddress; | 41 | mSmtpUsername = mEmailAddress; |
42 | mSmtpPassword = mImapPassword; | ||
43 | 42 | ||
44 | mCardDavServer = "https://apps.kolabnow.com/addressbooks/" + mEmailAddress; | 43 | mCardDavServer = "https://apps.kolabnow.com/addressbooks/" + mEmailAddress; |
45 | mCardDavUsername = mEmailAddress; | 44 | mCardDavUsername = mEmailAddress; |
46 | mCardDavPassword = mImapPassword; | ||
47 | 45 | ||
48 | saveAccount(); | 46 | saveAccount(); |
49 | saveImapResource(); | 47 | saveImapResource(); |
diff --git a/accounts/kolabnow/qml/Login.qml b/accounts/kolabnow/qml/Login.qml index e416b089..856f8ba4 100644 --- a/accounts/kolabnow/qml/Login.qml +++ b/accounts/kolabnow/qml/Login.qml | |||
@@ -33,7 +33,7 @@ Item { | |||
33 | } | 33 | } |
34 | 34 | ||
35 | function login(){ | 35 | function login(){ |
36 | settings.save() | 36 | settings.login({accountSecret: pwField.text}) |
37 | } | 37 | } |
38 | 38 | ||
39 | GridLayout { | 39 | GridLayout { |
@@ -55,8 +55,6 @@ Item { | |||
55 | focus: true | 55 | focus: true |
56 | 56 | ||
57 | placeholderText: qsTr("Password of your Kolab Now account") | 57 | placeholderText: qsTr("Password of your Kolab Now account") |
58 | text: settings.imapPassword | ||
59 | onTextChanged: settings.imapPassword = text | ||
60 | } | 58 | } |
61 | } | 59 | } |
62 | } | 60 | } |