Changeset 121

Show
Ignore:
Timestamp:
11/17/07 21:48:27 (9 months ago)
Author:
daboo
Message:

Add keychain support for password.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/branches/v4.1d1/Sources_Common/Mail/INET_Clients/SMTP/CSMTPSender.cp

    r19 r121  
    3333#include "CMulberryCommon.h" 
    3434#endif 
     35#include "CPasswordManager.h" 
    3536#include "CPluginManager.h" 
    3637#include "CRFC822.h" 
     
    14431444                        SMTPAuthenticate(); 
    14441445                        done = true; 
     1446 
     1447                        // Recache user id & password after successful logon 
     1448                        if (GetAccount()->GetAuthenticator().RequiresUserPswd()) 
     1449                        { 
     1450                                CAuthenticatorUserPswd* auth = GetAccount()->GetAuthenticatorUserPswd(); 
     1451 
     1452                                // Only bother if it contains something 
     1453                                if (!auth->GetPswd().empty()) 
     1454                                { 
     1455                                        CPasswordManager::GetManager()->AddPassword(GetAccount(), auth->GetPswd()); 
     1456                                } 
     1457                        } 
    14451458                } 
    14461459                catch (CSMTPException& ex)