znc salt value
This commit is contained in:
parent
a358caabf4
commit
a68d343ec1
|
@ -108,16 +108,14 @@ function add_user_irc_bouncer {
|
||||||
stop_irc_bouncer
|
stop_irc_bouncer
|
||||||
|
|
||||||
ZNC_SALT_BASE="$(create_password 30)"
|
ZNC_SALT_BASE="$(create_password 30)"
|
||||||
ZNC_SALT="$(echo \"${ZNC_SALT_BASE}\" | md5sum | awk '{print $1}')"
|
ZNC_SALT="$(echo \"${ZNC_SALT_BASE}\" | md5sum | awk -F ' ' '{print $1}')"
|
||||||
new_user_hash=$(echo "${new_user_password}${new_user_salt}" | sha256sum | awk -F ' ' '{print $1}')
|
new_user_hash=$(echo "${new_user_password}${ZNC_SALT}" | sha256sum | awk -F ' ' '{print $1}')
|
||||||
|
|
||||||
echo "<User ${new_username}>" >> /home/znc/.znc/configs/znc.conf
|
echo "<User ${new_username}>" >> /home/znc/.znc/configs/znc.conf
|
||||||
#new_user_pass="sha256#${new_user_hash}#${new_user_salt}#"
|
|
||||||
#echo " Pass = ${new_user_pass}" >> /home/znc/.znc/configs/znc.conf
|
|
||||||
echo ' <Pass password>' >> /home/znc/.znc/configs/znc.conf
|
echo ' <Pass password>' >> /home/znc/.znc/configs/znc.conf
|
||||||
echo ' Method = sha256' >> /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 " Hash = ${new_user_hash}" >> /home/znc/.znc/configs/znc.conf
|
||||||
echo " Salt = ${new_user_salt}" >> /home/znc/.znc/configs/znc.conf
|
echo " Salt = ${ZNC_SALT}" >> /home/znc/.znc/configs/znc.conf
|
||||||
echo ' </Pass>' >> /home/znc/.znc/configs/znc.conf
|
echo ' </Pass>' >> /home/znc/.znc/configs/znc.conf
|
||||||
echo " Admin = ${is_admin}" >> /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 " Nick = ${new_username}" >> /home/znc/.znc/configs/znc.conf
|
||||||
|
|
Loading…
Reference in New Issue