From a23aac5a6da79e08d846db5578565b636d4c7001 Mon Sep 17 00:00:00 2001 From: Ari Archer Date: Sun, 5 Sep 2021 02:30:22 +0300 Subject: [PATCH] update @ Sun 5 Sep 02:30:22 EEST 2021 --- content/js/shell/func.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/js/shell/func.js b/content/js/shell/func.js index da9b899..cd4ff24 100644 --- a/content/js/shell/func.js +++ b/content/js/shell/func.js @@ -106,7 +106,7 @@ function su(cmd) { password_hash = hash(prompt('Enter your password')); } - if (!password_hash) { + if (!password_hash && !root) { return 'Not authenticated. (empty password)' }