1
0
Fork 0
mirror of https://github.com/reactos/reactos.git synced 2025-05-11 21:34:19 +00:00

Do not force user to enter an admin password

This decision needs to be reconsidered once ReactOS has a better security (lsass...)

svn path=/trunk/; revision=26986
This commit is contained in:
Hervé Poussineau 2007-06-04 08:23:45 +00:00
parent ef546be459
commit 01d55fc116

View file

@ -650,6 +650,7 @@ ComputerPageDlgProc(HWND hwndDlg,
return TRUE; return TRUE;
} }
#if 0
/* Check if admin passwords have been entered */ /* Check if admin passwords have been entered */
if ((GetDlgItemText(hwndDlg, IDC_ADMINPASSWORD1, Password1, 15) == 0) || if ((GetDlgItemText(hwndDlg, IDC_ADMINPASSWORD1, Password1, 15) == 0) ||
(GetDlgItemText(hwndDlg, IDC_ADMINPASSWORD2, Password2, 15) == 0)) (GetDlgItemText(hwndDlg, IDC_ADMINPASSWORD2, Password2, 15) == 0))
@ -663,6 +664,10 @@ ComputerPageDlgProc(HWND hwndDlg,
SetWindowLong(hwndDlg, DWL_MSGRESULT, -1); SetWindowLong(hwndDlg, DWL_MSGRESULT, -1);
return TRUE; return TRUE;
} }
#else
GetDlgItemText(hwndDlg, IDC_ADMINPASSWORD1, Password1, 15);
GetDlgItemText(hwndDlg, IDC_ADMINPASSWORD2, Password2, 15);
#endif
/* Check if passwords match */ /* Check if passwords match */
if (_tcscmp(Password1, Password2)) if (_tcscmp(Password1, Password2))
{ {