mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
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:
parent
d261456065
commit
a193405623
@ -336,11 +336,12 @@ void NewCreds_OnEnable (HWND hDlg)
|
|||||||
if (!szUser[0])
|
if (!szUser[0])
|
||||||
fEnable = FALSE;
|
fEnable = FALSE;
|
||||||
|
|
||||||
|
if ( !strchr(szUser, '@') ) {
|
||||||
TCHAR szPassword[ cchRESOURCE ];
|
TCHAR szPassword[ cchRESOURCE ];
|
||||||
GetDlgItemText (hDlg, IDC_NEWCREDS_PASSWORD, szPassword, cchRESOURCE);
|
GetDlgItemText (hDlg, IDC_NEWCREDS_PASSWORD, szPassword, cchRESOURCE);
|
||||||
if (!szPassword[0])
|
if (!szPassword[0])
|
||||||
fEnable = FALSE;
|
fEnable = FALSE;
|
||||||
|
}
|
||||||
EnableWindow (GetDlgItem (hDlg, IDOK), fEnable);
|
EnableWindow (GetDlgItem (hDlg, IDOK), fEnable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user