diff options
| author | roedie <github@roedie.nl> | 2025-09-20 21:43:09 +0200 |
|---|---|---|
| committer | roedie <github@roedie.nl> | 2025-09-20 21:43:09 +0200 |
| commit | 44e12a001b21d6e0250466e252d61c805ba004df (patch) | |
| tree | eaef55de7e78f6eeef01c957722828749f1d05f9 /src/system | |
| parent | ae531cd932fe5c1662908a366766382dbc5550f7 (diff) | |
| download | vyos-1x-44e12a001b21d6e0250466e252d61c805ba004df.tar.gz vyos-1x-44e12a001b21d6e0250466e252d61c805ba004df.zip | |
T7852: Switch to yescypt for password encryption
Accidentally slipped in 2 whitespace corrections
Diffstat (limited to 'src/system')
| -rwxr-xr-x | src/system/standalone_root_pw_reset | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/system/standalone_root_pw_reset b/src/system/standalone_root_pw_reset index c82cea321..c2eea9411 100755 --- a/src/system/standalone_root_pw_reset +++ b/src/system/standalone_root_pw_reset @@ -54,7 +54,7 @@ change_password() { # set the password for the user then store it in the config # so the user is recreated on the next full system boot. - local epwd=$(mkpasswd --method=sha-512 "$pwd1") + local epwd=$(mkpasswd --method=yescrypt "$pwd1") # escape any slashes in resulting password local eepwd=$(sed 's:/:\\/:g' <<< $epwd) set_encrypted_password $user $eepwd $CF @@ -90,7 +90,7 @@ fi echo -n "Do you wish to reset the admin password? (y or n) " read -t $TIME_TO_WAIT response if [ "$?" != "0" ]; then - echo + echo echo "Response not received in time." echo "The admin password will not be reset." echo "Rebooting in 5 seconds..." @@ -127,7 +127,7 @@ fi # Leftover from V3.0 if grep -q /opt/vyatta/etc/config /etc/fstab -then +then echo "Mounting the config filesystem..." mount /opt/vyatta/etc/config/ fi |
