summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_options.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-05-05 17:47:04 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-05-05 17:47:04 +0000
commitfc946bfa82e2af4b54bf45b20dbd58b03b26a5b1 (patch)
tree00e47905da36acd40a3882455460a225cba12a8c /protocols/SkypeWeb/src/skype_options.cpp
parentbaa22ee6a5ec04472dfec660217019bc9febbb35 (diff)
SkypeWeb: Remove token if username or password changed.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13449 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_options.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_options.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_options.cpp b/protocols/SkypeWeb/src/skype_options.cpp
index 13e506428e..91e81796a8 100644
--- a/protocols/SkypeWeb/src/skype_options.cpp
+++ b/protocols/SkypeWeb/src/skype_options.cpp
@@ -45,6 +45,8 @@ void CSkypeOptionsMain::OnInitDialog()
void CSkypeOptionsMain::OnApply()
{
+ if (m_proto->getStringA(SKYPE_SETTINGS_ID) != m_skypename.GetTextA() || m_proto->getStringA("Password") != m_password.GetTextA())
+ m_proto->delSetting("TokenExpiresIn");
m_proto->setString(SKYPE_SETTINGS_ID, m_skypename.GetTextA());
m_proto->setString("Password", m_password.GetTextA());
ptrT group(m_group.GetText());