tinycm rev 103
Small fixes
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Feb 20 18:29:02 2017 +0100 (2017-02-20) |
parents | 69214a677729 |
children | 348289f0b48d |
files | index.cgi plugins/users/users.cgi |
line diff
1.1 --- a/index.cgi Mon Feb 20 17:03:32 2017 +0100 1.2 +++ b/index.cgi Mon Feb 20 18:29:02 2017 +0100 1.3 @@ -247,7 +247,6 @@ 1.4 touch $AUTH_FILE 1.5 chmod 0600 $AUTH_FILE 1.6 fi 1.7 - key=$(echo -n "$user:$mail:$pass" | md5sum | awk '{print $1}') 1.8 echo "$user:$pass" >> $AUTH_FILE 1.9 mkdir -p $PEOPLE/$user/ 1.10 cat > $PEOPLE/$user/account.conf << EOT 1.11 @@ -257,7 +256,6 @@ 1.12 NAME="$name" 1.13 USER="$user" 1.14 MAIL="$mail" 1.15 -KEY="$key" 1.16 1.17 EOT 1.18 chmod 0600 $PEOPLE/$user/account.conf
2.1 --- a/plugins/users/users.cgi Mon Feb 20 17:03:32 2017 +0100 2.2 +++ b/plugins/users/users.cgi Mon Feb 20 18:29:02 2017 +0100 2.3 @@ -81,7 +81,7 @@ 2.4 for u in $(cat $ADMIN_USERS) 2.5 do 2.6 . ${PEOPLE}/${u}/account.conf 2.7 - echo "<a href='?user=$u'>$u</a> | $NAME" 2.8 + echo "<a href='?user=$u'>$u</a> - $NAME" 2.9 done 2.10 echo "</pre>" 2.11 fi 2.12 @@ -125,7 +125,7 @@ 2.13 fi 2.14 cat << EOT 2.15 <tr> 2.16 - <td><a href='?$u'>$u</a></td> 2.17 + <td><a href="$script?user=$u">$u</a></td> 2.18 <td>TODO</td> 2.19 </tr> 2.20 EOT