File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
lib/private/AppFramework/Middleware/Security Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 2424use OCP \Session \Exceptions \SessionNotAvailableException ;
2525use OCP \User \Backend \IPasswordConfirmationBackend ;
2626use Psr \Log \LoggerInterface ;
27+ use ReflectionAttribute ;
2728use ReflectionMethod ;
2829
2930class PasswordConfirmationMiddleware extends Middleware {
@@ -115,6 +116,7 @@ private function needsPasswordConfirmation(ReflectionMethod $reflectionMethod):
115116 }
116117
117118 private function isPasswordConfirmationStrict (ReflectionMethod $ reflectionMethod ): bool {
119+ /** @var ReflectionAttribute<PasswordConfirmationRequired>[] $attributes */
118120 $ attributes = $ reflectionMethod ->getAttributes (PasswordConfirmationRequired::class);
119121 return !empty ($ attributes ) && ($ attributes [0 ]->newInstance ()->getStrict ());
120122 }
You can’t perform that action at this time.
0 commit comments