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

@ -336,11 +336,12 @@ void NewCreds_OnEnable (HWND hDlg)
if (!szUser[0])
fEnable = FALSE;
if ( !strchr(szUser, '@') ) {
TCHAR szPassword[ cchRESOURCE ];
GetDlgItemText (hDlg, IDC_NEWCREDS_PASSWORD, szPassword, cchRESOURCE);
if (!szPassword[0])
fEnable = FALSE;
}
EnableWindow (GetDlgItem (hDlg, IDOK), fEnable);
}