MCPcopy Create free account
hub / github.com/archlinux/archinstall / _prev_authentication

Method _prev_authentication

archinstall/lib/global_menu.py:315–336  ·  view source on GitHub ↗
(self, item: MenuItem)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 4

trFunction · 0.90
as_tableFunction · 0.90
hiddenMethod · 0.80
display_valueMethod · 0.80

Tested by

no test coverage detected