We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af56c22 commit 293883eCopy full SHA for 293883e
web/src/main/java/org/springframework/security/web/webauthn/management/JdbcUserCredentialRepository.java
@@ -28,7 +28,6 @@
28
import java.util.Set;
29
import java.util.function.Function;
30
31
-import org.springframework.dao.DuplicateKeyException;
32
import org.springframework.jdbc.core.ArgumentPreparedStatementSetter;
33
import org.springframework.jdbc.core.JdbcOperations;
34
import org.springframework.jdbc.core.PreparedStatementSetter;
@@ -154,12 +153,7 @@ public void save(CredentialRecord record) {
154
153
Assert.notNull(record, "record cannot be null");
155
int rows = updateCredentialRecord(record);
156
if (rows == 0) {
157
- try {
158
- insertCredentialRecord(record);
159
- }
160
- catch (DuplicateKeyException ex) {
161
- updateCredentialRecord(record);
162
+ insertCredentialRecord(record);
163
}
164
165
0 commit comments