edituser.cgi: gracefully deal with invalid SSH keys
commitc4ea5d1a1f1403d54f64c56724edb11c00b69ba3
authorJan Krüger <jk@jk.gs>
Wed, 30 Nov 2011 04:29:14 +0000 (30 05:29 +0100)
committerJan Krüger <jk@jk.gs>
Wed, 30 Nov 2011 04:31:15 +0000 (30 05:31 +0100)
treea0a0536944d648a1030fcf2b1b3673f6a763a6ea
parent1dbadf2cdc95e3fa8f946fcc9d2a03ee0f3a9db3
edituser.cgi: gracefully deal with invalid SSH keys

Previously, we ignored errors while processing SSH key updates. Most
importantly, this invalidated auth codes even if an invalid SSH key was
submitted. Instead, fail early and re-display the update form.

Signed-off-by: Jan Krüger <jk@jk.gs>
cgi/edituser.cgi