summaryrefslogtreecommitdiff
path: root/hscript/script.cc
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/script.cc')
-rw-r--r--hscript/script.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/hscript/script.cc b/hscript/script.cc
index dd5e931..8dbf9e1 100644
--- a/hscript/script.cc
+++ b/hscript/script.cc
@@ -567,6 +567,15 @@ bool Script::validate() const {
failures++;
}
+ /* REQ: Runner.Validate.userpw.None */
+ if(!detail->passphrase) {
+ int line = detail->name->lineno();
+ output_warning("installfile:" + std::to_string(line),
+ "username: " + acct.first +
+ " has no set passphrase",
+ "This account will not be able to log in.");
+ }
+
/* REQ: Runner.Validate.usericon */
if(detail->icon && !detail->icon->validate(this->opts)) {
failures++;