mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-07 07:53:18 +02:00
cli: do password encrypt, change default hash, md5 -> sha512
[skip ci] Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -179,7 +179,7 @@
|
||||
<PARAM name="pwpass" ptype="/STRING" help="Optional clear text password (no spaces)"/>
|
||||
</SWITCH>
|
||||
<ACTION sym="script" interactive="true">
|
||||
type=${KLISH_PARAM_pwhash:-md5}
|
||||
type=${KLISH_PARAM_pwhash:-sha512}
|
||||
salt=${KLISH_PARAM_pwsalt:+-S $KLISH_PARAM_pwsalt}
|
||||
mkpasswd -m $type $salt $KLISH_PARAM_pwpass
|
||||
</ACTION>
|
||||
|
||||
Reference in New Issue
Block a user