Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 0aa6f33

Browse files
committed
Fixed case-sensitivity bug
Closes #579
1 parent 9c58cb3 commit 0aa6f33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Commands/Import.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ protected function findByCredentials()
9595

9696
foreach ($this->credentials as $key => $value) {
9797
if (! Str::contains($key, 'password')) {
98-
$query->where($key, $value);
98+
// We need to lowercase all values so we locate the
99+
// proper model. This avoids case sensitivity.
100+
$query->where($key, strtolower($value));
99101
}
100102
}
101103

0 commit comments

Comments
 (0)