Skip to content
Snippets Groups Projects
Commit 2ae98498 authored by Bob Mottram's avatar Bob Mottram
Browse files

Fix salt

parent af64861e
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,8 @@ function add_user_irc_bouncer {
stop_irc_bouncer
new_user_salt_base2=$(echo "$IRC_PASSWORD" | sed "s|#|.|g")
new_user_salt_base1="$(create_password 20)"
new_user_salt_base2=$(echo "$new_user_salt_base1" | 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 | awk -F ' ' '{print $1}')
new_user_pass="sha256#${new_user_hash}#${new_user_salt}#"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment