chore: authentication prompt in Ubuntu 26.04 (#2603)

Handling the password prompt in Ubuntu 26.04
This commit is contained in:
lunardunno
2026-05-18 07:55:07 +04:00
committed by GitHub
parent c7b1c2809f
commit f0299ca9fe
@@ -654,7 +654,7 @@ ErrorCode InstallController::isUserInSudo(const ServerCredentials &credentials,
return ErrorCode::ServerUserDirectoryNotAccessible;
if (stdOut.contains("sudoers") || stdOut.contains("is not allowed to run sudo on"))
return ErrorCode::ServerUserNotAllowedInSudoers;
if (stdOut.contains("password is required"))
if (stdOut.contains("password is required") || stdOut.contains("authentication is required"))
return ErrorCode::ServerUserPasswordRequired;
return error;