def _get_conditional_input(self, data): # pylint: disable=unused-argument """Callback when user wants to set conditional input. :param data: can be passed when adding callback in container (not used here) :type data: anything """ dialog = PasswordDialog("Unconditional password input", policy_name=PASSWORD_POLICY_ROOT) self._conditional_input = dialog.run()
def _get_conditional_input(self, data): """Callback when user wants to set conditional input. :param data: can be passed when adding callback in container (not used here) :type data: anything """ # password policy for setting root password password_policy = self.data.anaconda.pwpolicy.get_policy("root", fallback_to_default=True) dialog = PasswordDialog("Unconditional input", policy=password_policy) self._conditional_input = dialog.run()
def _get_conditional_input(self, data): # pylint: disable=unused-argument """Callback when user wants to set conditional input. :param data: can be passed when adding callback in container (not used here) :type data: anything """ # password policy for setting root password password_policy = self.data.anaconda.pwpolicy.get_policy( "root", fallback_to_default=True) dialog = PasswordDialog("Unconditional password input", policy=password_policy) self._conditional_input = dialog.run()
def show_all(self): super().show_all() password_dialog = PasswordDialog(title=_("Password"), policy_name=PASSWORD_POLICY_ROOT) password_dialog.no_separator = True self._password = password_dialog.run() if self._password is None: self.redraw() return else: self.apply() self.close()
def show_all(self): super().show_all() password_dialog = PasswordDialog(_("Password"), policy=self._policy) password_dialog.no_separator = True self._password = password_dialog.run() if self._password is None: self.redraw() return else: self.apply() self.close()
def show_all(self): super().show_all() password_dialog = PasswordDialog(_("Password"), policy=self._policy) password_dialog.no_separator = True self._password = password_dialog.run() if self._password is None: self.redraw() return else: self.apply() self.close()
def run_passphrase_dialog(self): """Ask user for a default passphrase.""" if not self._is_passphrase_required(): return dialog = PasswordDialog( title=_("Passphrase"), message=_( "Please provide a default LUKS passphrase for all devices " "you want to encrypt. You will have to type it twice."), secret_type=SecretType.PASSPHRASE, policy=get_policy(self.data, "luks"), process_func=lambda x: x) passphrase = None while passphrase is None: passphrase = dialog.run() self._set_required_passphrase(passphrase)
def run_passphrase_dialog(self): """Ask user for a default passphrase.""" if not is_passphrase_required(self._partitioning): return dialog = PasswordDialog( title=_("Passphrase"), message=_( "Please provide a default LUKS passphrase for all devices " "you want to encrypt. You will have to type it twice."), secret_type=SecretType.PASSPHRASE, policy_name=PASSWORD_POLICY_LUKS, process_func=lambda x: x) passphrase = None while passphrase is None: passphrase = dialog.run() set_required_passphrase(self._partitioning, passphrase)
def run_passphrase_dialog(self): """Ask user for a default passphrase.""" data_without_passphrase = self._get_data_without_passphrase() if not data_without_passphrase: return dialog = PasswordDialog( title=_("Passphrase"), message=_("Please provide a default LUKS passphrase for all devices " "you want to encrypt. You will have to type it twice."), secret_type=SecretType.PASSPHRASE, policy=get_policy(self.data, "luks"), process_func=lambda x: x ) passphrase = None while passphrase is None: passphrase = dialog.run() self._set_data_without_passphrase(data_without_passphrase, passphrase)