Store keys in standard format; query with fingerprint not public key
This commit is contained in:
parent
b563f13d09
commit
a9364061c1
3 changed files with 19 additions and 3 deletions
|
@ -27,7 +27,7 @@ class SSHKeyController extends ClientApiController
|
|||
{
|
||||
$model = $request->user()->sshKeys()->create([
|
||||
'name' => $request->input('name'),
|
||||
'public_key' => $request->input('public_key'),
|
||||
'public_key' => $request->getPublicKey(),
|
||||
'fingerprint' => $request->getKeyFingerprint(),
|
||||
]);
|
||||
|
||||
|
|
Reference in a new issue