Bob Mottram 8 年 前
コミット
97efafc2da
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      src/freedombone-app-irc

+ 1
- 1
src/freedombone-app-irc ファイルの表示

107
 
107
 
108
     stop_irc_bouncer
108
     stop_irc_bouncer
109
 
109
 
110
-    ZNC_SALT="$(dd if=/dev/urandom bs=16c count=1 | md5sum | awk -F ' ' '{print $1}')"
110
+    ZNC_SALT="$(dd if=/dev/urandom bs=16c count=1 | md5sum | awk -F ' ' '{print $1}' | cut -c1-20)"
111
     new_user_hash=$(echo "${new_user_password}${ZNC_SALT}" | sha256sum | awk -F ' ' '{print $1}')
111
     new_user_hash=$(echo "${new_user_password}${ZNC_SALT}" | sha256sum | awk -F ' ' '{print $1}')
112
 
112
 
113
     echo "<User ${new_username}>" >> /home/znc/.znc/configs/znc.conf
113
     echo "<User ${new_username}>" >> /home/znc/.znc/configs/znc.conf