mirror of
https://github.com/YunoHost/test_apps.git
synced 2024-09-03 20:06:29 +02:00
-z -> -n to validate that password ain't empty
This commit is contained in:
parent
699004bdc7
commit
7469e00fff
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ validate__arg8() {
|
|||
# SPECIFIC SETTERS FOR TOML SHORT KEYS
|
||||
#=================================================
|
||||
set__arg8() {
|
||||
if [ -z "${arg8}" ]
|
||||
if [ -n "${arg8}" ]
|
||||
then
|
||||
python -c "import crypt; print(crypt.crypt(\"${arg8}\", \"\$6\$saltsalt\$\"))" > $final_path/password
|
||||
ynh_print_info "The hash of your password has been registered in $final_path/password"
|
||||
|
|
Loading…
Reference in a new issue