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

20 chars

parent 8579222e
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ function add_user_irc_bouncer {
stop_irc_bouncer
ZNC_SALT="$(dd if=/dev/urandom bs=16c count=1 | md5sum | awk -F ' ' '{print $1}')"
ZNC_SALT="$(dd if=/dev/urandom bs=16c count=1 | md5sum | awk -F ' ' '{print $1}' | cut -c1-20)"
new_user_hash=$(echo "${new_user_password}${ZNC_SALT}" | sha256sum | awk -F ' ' '{print $1}')
echo "<User ${new_username}>" >> /home/znc/.znc/configs/znc.conf
......
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