Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wrtnode/webwifi/files/www/cgi-bin/setpass
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ -n "$QUERY_STRING" ]; then
firstvalue=`echo $firstexp | cut -d'=' -f 2`

if [ "$firstkey"x = "password"x -o "$firstkey"x = "passwd"x ]; then
apass=$secondvalue
apass=$firstvalue
else
echo "{\"result\"=\"error\",\"message\"=\"Please input the right format like password=xxxx\"}"
exit 1
Expand All @@ -28,4 +28,4 @@ echo "{\"result\"=\"success\",\"message\"=\"operation finished\"}"
# Restart network service
/etc/init.d/network restart 1>&- 2>&-

exit 0
exit 0