Show
Ignore:
Timestamp:
2005-08-01 17:37:41 (3 years ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Fix password prompt for POP (more authentication ID fallout).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • account.c

    r4014 r4114  
    172172  { 
    173173    if (ImapLogin) 
     174    { 
    174175      strfcpy (account->login, ImapLogin, sizeof (account->login)); 
    175     else { 
    176       mutt_account_getuser (account); 
    177       strfcpy (account->login, account->user, sizeof (account->login)); 
     176      account->flags |= M_ACCT_LOGIN; 
    178177    } 
    179178  } 
    180179#endif 
     180 
     181  if (! account->flags & M_ACCT_LOGIN) 
     182  { 
     183    mutt_account_getuser (account); 
     184    strfcpy (account->login, account->user, sizeof (account->login)); 
     185  } 
    181186 
    182187  account->flags |= M_ACCT_LOGIN; 
     
    203208  { 
    204209    snprintf (prompt, sizeof (prompt), _("Password for %s@%s: "), 
    205       account->login, account->host); 
     210              account->flags & M_ACCT_LOGIN ? account->login : account->user, 
     211              account->host); 
    206212    account->pass[0] = '\0'; 
    207213    if (mutt_get_password (prompt, account->pass, sizeof (account->pass)))