diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-26 08:52:58 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-27 13:04:03 +0200 |
commit | b036b436aa64be000481f8d1da30ff53d4bcb889 (patch) | |
tree | 152fe703c11a79a1904e362271d5022b9d784a5b /web/html/account.php | |
parent | dbe56342a19692cba6a6cd8e79a4e6b65a6d659e (diff) | |
download | aur-b036b436aa64be000481f8d1da30ff53d4bcb889.tar.gz aur-b036b436aa64be000481f8d1da30ff53d4bcb889.tar.xz |
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>
Diffstat (limited to 'web/html/account.php')
-rw-r--r-- | web/html/account.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/html/account.php b/web/html/account.php index 0bb145cc..c447de35 100644 --- a/web/html/account.php +++ b/web/html/account.php @@ -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."); |