Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 0b5343f

Browse files
Merge branch '4.2'
* 4.2: fix pruning pdo cache for vendors that throw on execute Fix typo in translation Declare exceptions that are already thrown by implementations
2 parents 291c2fc + 1d2c62c commit 0b5343f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Core/Encoder/PasswordEncoderInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Security\Core\Encoder;
1313

14+
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
15+
1416
/**
1517
* PasswordEncoderInterface is the interface for all encoders.
1618
*
@@ -25,6 +27,9 @@ interface PasswordEncoderInterface
2527
* @param string $salt The salt
2628
*
2729
* @return string The encoded password
30+
*
31+
* @throws BadCredentialsException If the raw password is invalid, e.g. excessively long
32+
* @throws \InvalidArgumentException If the salt is invalid
2833
*/
2934
public function encodePassword($raw, $salt);
3035

@@ -36,6 +41,8 @@ public function encodePassword($raw, $salt);
3641
* @param string $salt The salt
3742
*
3843
* @return bool true if the password is valid, false otherwise
44+
*
45+
* @throws \InvalidArgumentException If the salt is invalid
3946
*/
4047
public function isPasswordValid($encoded, $raw, $salt);
4148
}

Core/Resources/translations/security.nb.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</trans-unit>
1717
<trans-unit id="4">
1818
<source>Invalid credentials.</source>
19-
<target>Ugyldig påloggingsinformasjonen.</target>
19+
<target>Ugyldig påloggingsinformasjon.</target>
2020
</trans-unit>
2121
<trans-unit id="5">
2222
<source>Cookie has already been used by someone else.</source>

Core/Resources/translations/security.no.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</trans-unit>
1717
<trans-unit id="4">
1818
<source>Invalid credentials.</source>
19-
<target>Ugyldig påloggingsinformasjonen.</target>
19+
<target>Ugyldig påloggingsinformasjon.</target>
2020
</trans-unit>
2121
<trans-unit id="5">
2222
<source>Cookie has already been used by someone else.</source>

0 commit comments

Comments
 (0)