mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 16:00:12 +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
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user