Mercurial > hgrepos > hgweb.cgi > s4
comparison scripts/add-user-csv.sh @ 560:1d0344a5f5aa
Supply static salt for flag
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sun, 14 Apr 2019 09:01:45 +0900 |
parents | 7cd9e895fa09 |
children | 7ab2ceb1b8dd |
comparison
equal
deleted
inserted
replaced
559:2f580c147434 | 560:1d0344a5f5aa |
---|---|
26 SELECT * FROM _newuser n | 26 SELECT * FROM _newuser n |
27 WHERE NOT EXISTS (SELECT * FROM user WHERE name=n.user); | 27 WHERE NOT EXISTS (SELECT * FROM user WHERE name=n.user); |
28 EOF | 28 EOF |
29 while IFS=, read user email gecos inipswd | 29 while IFS=, read user email gecos inipswd |
30 do | 30 do |
31 encpswd=`echo $inipswd|mypwhash` | 31 encpswd=`mycrypt "$inipswd" 'StOpmE'` |
32 case "$user" in | 32 case "$user" in |
33 *\'*) echo "Skipping [$user]" | 33 *\'*) echo "Skipping [$user]" |
34 continue ;; | 34 continue ;; |
35 *@*) ;; # OK | 35 *@*) ;; # OK |
36 *) echo "Skipping [$user] because of lacking email pattern" >&2 | 36 *) echo "Skipping [$user] because of lacking email pattern" >&2 |