mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-10 05:25:51 +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) {
|
public function getRandomCredentialByVaultId($vault_id, $user_id) {
|
||||||
$sql = 'SELECT * FROM `*PREFIX*passman_credentials` ' .
|
$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]);
|
return $this->findEntities($sql, [$user_id, $vault_id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue