Skip to content

Commit

Permalink
portal: allow multiple ssh keys. tweak layout to handle long keys dat…
Browse files Browse the repository at this point in the history
…a on conformation page.
  • Loading branch information
themactep committed Nov 27, 2024
1 parent 84c8064 commit ae959a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/thingino-portal/files/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ elif post_request; then
fi
fw_setenv -s $tempfile
echo "root:$rootpass" | chpasswd -c sha512
echo "$rootpkey" > /root/.ssh/authorized_keys
echo "$rootpkey" | tr -d '\r' | sed 's/^ //g' > /root/.ssh/authorized_keys
sed -i "s/^ifs=.*$/ifs=wlan0/" /etc/onvif.conf
reboot -d 2 &
else
Expand Down Expand Up @@ -258,7 +258,7 @@ document.querySelector("#wlanap_enabled").addEventListener("change", ev => {
<dt>Time settings</dt>
<dd class="lead"><%= $timezone %></dd>
<dt>User <b>root</b> Public SSH Key</dt>
<dd class="lead text-break"><%= $rootpkey %></dd>
<dd class="lead text-break" style="max-height:5em;overflow:auto;font-size:0.7em;"><%= $rootpkey %></dd>
</dl>

<div class="row text-center">
Expand Down

0 comments on commit ae959a0

Please sign in to comment.