(self, item: MenuItem)
| 313 | return None |
| 314 | |
| 315 | def _prev_authentication(self, item: MenuItem) -> str | None: |
| 316 | if item.value: |
| 317 | auth_config: AuthenticationConfiguration = item.value |
| 318 | output = '' |
| 319 | |
| 320 | if auth_config.root_enc_password: |
| 321 | output += f'{tr("Root password")}: {auth_config.root_enc_password.hidden()}\n' |
| 322 | |
| 323 | if auth_config.users: |
| 324 | output += as_table(auth_config.users) + '\n' |
| 325 | |
| 326 | if auth_config.u2f_config: |
| 327 | u2f_config = auth_config.u2f_config |
| 328 | login_method = u2f_config.u2f_login_method.display_value() |
| 329 | output = tr('U2F login method: ') + login_method |
| 330 | |
| 331 | output += '\n' |
| 332 | output += tr('Passwordless sudo: ') + (tr('Enabled') if u2f_config.passwordless_sudo else tr('Disabled')) |
| 333 | |
| 334 | return output |
| 335 | |
| 336 | return None |
| 337 | |
| 338 | def _prev_applications(self, item: MenuItem) -> str | None: |
| 339 | if item.value: |
nothing calls this directly
no test coverage detected