Correct sha

This commit is contained in:
Bob Mottram 2016-10-28 17:16:26 +01:00
parent b9fa436070
commit af64861ee4
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ function add_user_irc_bouncer {
new_user_salt_base2=$(echo "$IRC_PASSWORD" | sed "s|#|.|g")
new_user_salt=$(echo "$new_user_salt_base2" | sed "s|#|.|g")
new_user_hash=$(echo "${new_user_password}${new_user_salt}" | sha256sum)
new_user_hash=$(echo "${new_user_password}${new_user_salt}" | sha256sum | awk -F ' ' '{print $1}')
new_user_pass="sha256#${new_user_hash}#${new_user_salt}#"
echo "<User ${new_username}>" >> /home/znc/.znc/configs/znc.conf