Skip to content

Commit 3e849f1

Browse files
committed
show more characters in shortened key
1 parent fa2e42f commit 3e849f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webroot/panel/account.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
}
4747
$keys = array_map("trim", $keys);
4848
foreach ($keys as $key) {
49-
$keyShort = shortenString($key, 10, 10);
49+
$keyShort = shortenString($key, 10, 30);
5050
try {
5151
$keyWasAdded = $USER->addSSHKey($key, $OPERATOR);
5252
if ($keyWasAdded) {
@@ -64,7 +64,7 @@
6464
case "delKey":
6565
$index = str2int(UnityHTTPD::getPostData("delIndex"));
6666
$key = $USER->removeSSHKey($index, $OPERATOR);
67-
$keyShort = shortenString($key, 10, 10);
67+
$keyShort = shortenString($key, 10, 30);
6868
UnityHTTPD::messageSuccess("SSH Key Removed", $keyShort);
6969
UnityHTTPD::redirect();
7070
break;

0 commit comments

Comments
 (0)