mirror of
https://github.com/nextcloud/passman.git
synced 2025-09-27 23:34:31 +08:00
Fix for vault challenge
This commit is contained in:
parent
111443cd81
commit
82be2a19f4
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class CredentialMapper extends Mapper {
|
|||
|
||||
public function getRandomCredentialByVaultId($vault_id, $user_id) {
|
||||
$sql = 'SELECT * FROM `*PREFIX*passman_credentials` ' .
|
||||
'WHERE `user_id` = ? and vault_id = ? ORDER BY RAND() LIMIT 1';
|
||||
'WHERE `user_id` = ? and vault_id = ? AND shared_key is NULL ORDER BY RAND() LIMIT 1';
|
||||
return $this->findEntities($sql, [$user_id, $vault_id]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue