Skip to content

Commit 69b32a8

Browse files
committed
include key in message
1 parent 0e7c9a1 commit 69b32a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webroot/panel/account.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@
4545
try {
4646
$keyWasAdded = $USER->addSSHKey($key, $OPERATOR);
4747
} catch (NoKeyLoadedException) {
48-
UnityHTTPD::messageError("SSH Key Not Added", "This key is invalid");
48+
UnityHTTPD::messageError("SSH Key Not Added: Invalid", $key);
4949
UnityHTTPD::redirect();
5050
}
5151
if ($keyWasAdded) {
52-
UnityHTTPD::messageSuccess("SSH Key Added", "");
52+
UnityHTTPD::messageSuccess("SSH Key Added", $key);
5353
UnityHTTPD::redirect();
5454
} else {
55-
UnityHTTPD::messageInfo("SSH Key Not Added", "This key already exists");
55+
UnityHTTPD::messageInfo("SSH Key Not Added: Already Exists", $key);
5656
UnityHTTPD::redirect();
5757
}
5858
}

0 commit comments

Comments
 (0)