From fbb5d5413b30a9803170b302ed9fa624c1608848 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 28 Oct 2016 17:36:49 +0100 Subject: [PATCH] Different password format --- src/freedombone-app-irc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-irc b/src/freedombone-app-irc index 34800c33..2dd3a9de 100755 --- a/src/freedombone-app-irc +++ b/src/freedombone-app-irc @@ -104,10 +104,15 @@ function add_user_irc_bouncer { 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}#" + #new_user_pass="sha256#${new_user_hash}#${new_user_salt}#" echo "" >> /home/znc/.znc/configs/znc.conf - echo " Pass = ${new_user_pass}" >> /home/znc/.znc/configs/znc.conf + #echo " Pass = ${new_user_pass}" >> /home/znc/.znc/configs/znc.conf + echo ' ' >> /home/znc/.znc/configs/znc.conf + echo ' Method = sha256' >> /home/znc/.znc/configs/znc.conf + echo " Hash = ${new_user_hash}" >> /home/znc/.znc/configs/znc.conf + echo " Salt = ${new_user_salt}" >> /home/znc/.znc/configs/znc.conf + echo ' ' >> /home/znc/.znc/configs/znc.conf echo " Admin = ${is_admin}" >> /home/znc/.znc/configs/znc.conf echo " Nick = ${new_username}" >> /home/znc/.znc/configs/znc.conf echo " AltNick = ${new_username}_" >> /home/znc/.znc/configs/znc.conf