mirror of
https://github.com/nextcloud/passman.git
synced 2025-11-08 05:04:04 +08:00
remove 'Undefined index: icon' error by adding the icon key to the credential array
This commit is contained in:
parent
41b1d62d6d
commit
b2a41ea76a
1 changed files with 2 additions and 2 deletions
|
|
@ -85,6 +85,7 @@ class CredentialController extends ApiController {
|
|||
'username' => $username,
|
||||
'password' => $password,
|
||||
'url' => $url,
|
||||
'icon' => $favicon,
|
||||
'favicon' => $favicon,
|
||||
'renew_interval' => $renew_interval,
|
||||
'expire_time' => $expire_time,
|
||||
|
|
@ -94,7 +95,6 @@ class CredentialController extends ApiController {
|
|||
'otp' => $otp,
|
||||
'hidden' => $hidden,
|
||||
'compromised' => $compromised
|
||||
|
||||
);
|
||||
|
||||
$credential = $this->credentialService->createCredential($credential);
|
||||
|
|
@ -353,4 +353,4 @@ class CredentialController extends ApiController {
|
|||
$this->credentialRevisionService->updateRevision($revision);
|
||||
return new JSONResponse(array());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue