Skip to content

Commit

Permalink
Always ask for truenas_admin password for HexOS
Browse files Browse the repository at this point in the history
(cherry picked from commit 5a2e2af)
  • Loading branch information
themylogin authored and bugclerk committed Nov 25, 2024
1 parent 1301af8 commit 56519ae
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions truenas_installer/installer_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,18 @@ async def _install_upgrade_internal(self):
if not await dialog_yesno(f"{self.installer.vendor} Installation", text):
return False

authentication_method = await dialog_menu(
"Web UI Authentication Method",
{
"Administrative user (truenas_admin)": self._authentication_truenas_admin,
"Configure using Web UI": self._authentication_webui,
}
)
if authentication_method is False:
return False
if vendor == "HexOS":
authentication_method = await self._authentication_truenas_admin()
else:
authentication_method = await dialog_menu(
"Web UI Authentication Method",
{
"Administrative user (truenas_admin)": self._authentication_truenas_admin,
"Configure using Web UI": self._authentication_webui,
}
)
if authentication_method is False:
return False

set_pmbr = False
if not self.installer.efi:
Expand Down

0 comments on commit 56519ae

Please sign in to comment.