mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Add support for multiple SSH public keys
Attaching more than one SSH public key to the same account is useful, e.g. if one uses different machines to access the AUR SSH interface. Multiple keys can now be specified by adding multiple lines to the text area on the account edit form. Implements FS#45469. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org> Acked-by: Leonidas Spyropoulos <artafinde@gmail.com>
This commit is contained in:
parent
dbe56342a1
commit
b036b436aa
5 changed files with 159 additions and 25 deletions
|
@ -16,6 +16,7 @@ $need_userinfo = array(
|
|||
|
||||
if (in_array($action, $need_userinfo)) {
|
||||
$row = account_details(in_request("ID"), in_request("U"));
|
||||
$PK = implode("\n", account_get_ssh_keys($row["ID"]));
|
||||
}
|
||||
|
||||
if ($action == "AccountInfo") {
|
||||
|
@ -59,7 +60,7 @@ if (isset($_COOKIE["AURSID"])) {
|
|||
display_account_form("UpdateAccount", $row["Username"],
|
||||
$row["AccountTypeID"], $row["Suspended"], $row["Email"],
|
||||
"", "", $row["RealName"], $row["LangPreference"],
|
||||
$row["IRCNick"], $row["PGPKey"], $row["SSHPubKey"],
|
||||
$row["IRCNick"], $row["PGPKey"], $PK,
|
||||
$row["InactivityTS"] ? 1 : 0, $row["ID"]);
|
||||
} else {
|
||||
print __("You do not have permission to edit this account.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue