Skip to content
Snippets Groups Projects
Commit 7496b3d3 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-luci-admin: fix SSH keys being removed when a password is set

parent f9cc7318
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,9 @@ if fs.access("/etc/config/dropbear") then
end
function keys.remove(self, section)
fs.remove("/etc/dropbear/authorized_keys")
if keys:formvalue("_keys") then
fs.remove("/etc/dropbear/authorized_keys")
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment