afscreds-aklog-only-20040626

Modify the Obtain Tokens dialog to allow a blank password
if a full principal name is provided.  (for aklog only requests)
This commit is contained in:
Jeffrey Altman 2004-06-28 17:33:20 +00:00 committed by Jeffrey Altman
parent d261456065
commit a193405623

View File

@ -329,19 +329,20 @@ void NewCreds_OnInitDialog (HWND hDlg)
void NewCreds_OnEnable (HWND hDlg)
{
BOOL fEnable = TRUE;
BOOL fEnable = TRUE;
TCHAR szUser[ cchRESOURCE ];
GetDlgItemText (hDlg, IDC_NEWCREDS_USER, szUser, cchRESOURCE);
if (!szUser[0])
fEnable = FALSE;
TCHAR szUser[ cchRESOURCE ];
GetDlgItemText (hDlg, IDC_NEWCREDS_USER, szUser, cchRESOURCE);
if (!szUser[0])
fEnable = FALSE;
TCHAR szPassword[ cchRESOURCE ];
GetDlgItemText (hDlg, IDC_NEWCREDS_PASSWORD, szPassword, cchRESOURCE);
if (!szPassword[0])
fEnable = FALSE;
EnableWindow (GetDlgItem (hDlg, IDOK), fEnable);
if ( !strchr(szUser, '@') ) {
TCHAR szPassword[ cchRESOURCE ];
GetDlgItemText (hDlg, IDC_NEWCREDS_PASSWORD, szPassword, cchRESOURCE);
if (!szPassword[0])
fEnable = FALSE;
}
EnableWindow (GetDlgItem (hDlg, IDOK), fEnable);
}