Author: jsuchome Date: Mon Jun 16 16:27:21 2008 New Revision: 48338 URL: http://svn.opensuse.org/viewcvs/yast?rev=48338&view=rev Log: remember root password during installation (bnc#396399) Modified: trunk/users/src/inst_root.ycp Modified: trunk/users/src/inst_root.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/users/src/inst_root.ycp?rev=48338&r1=48337&r2=48338&view=diff ============================================================================== --- trunk/users/src/inst_root.ycp (original) +++ trunk/users/src/inst_root.ycp Mon Jun 16 16:27:21 2008 @@ -49,6 +49,10 @@ string encryptionMethod = UsersSimple::EncryptionMethod (); + string pw = ""; + if (GetInstArgs::going_back() && Users::GetRootPassword () != nil) + pw = Users::GetRootPassword (); + // Title for root-password dialogue string title = _("Password for the System Administrator \"root\""); @@ -60,11 +64,11 @@ `VSpacing(0.8), `Password (`id(`pw1), `opt (`hstretch), // Label: get password for user root - _("&Password for root User"), ""), + _("&Password for root User"), pw), `VSpacing(0.8), `Password (`id(`pw2), `opt (`hstretch), // Label: get same password again for verification - _("Con&firm Password"), ""), + _("Con&firm Password"), pw), `VSpacing (2.4), // text entry label `InputField (`opt(`hstretch),_("&Test Keyboard Layout")) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org