diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-19 01:43:15 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-19 01:43:15 -0500 |
commit | d3489c52d4ad1e5b17ce88e8b0e5142b30bb324e (patch) | |
tree | f724d77518fc09b0707311b31857e784abda6daa /hscript/script.cc | |
parent | 2374778a55f9380ee5b821eb9563e20aad1bc3de (diff) | |
download | horizon-d3489c52d4ad1e5b17ce88e8b0e5142b30bb324e.tar.gz horizon-d3489c52d4ad1e5b17ce88e8b0e5142b30bb324e.tar.bz2 horizon-d3489c52d4ad1e5b17ce88e8b0e5142b30bb324e.tar.xz horizon-d3489c52d4ad1e5b17ce88e8b0e5142b30bb324e.zip |
hscript: Implement UserPassphrase, add tests
Diffstat (limited to 'hscript/script.cc')
-rw-r--r-- | hscript/script.cc | 9 |
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++; |