Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Security] Custom Authenticator: What does "validate no parameter is empty" mean? #19812

Closed as not planned
@ThomasLandauer

Description

@ThomasLandauer

@wouterj You were the last one who edited the code block athttps://symfony.com/doc/current/security/custom_authenticator.html#passport-badges in this commit:01cb2b0

What does "validate no parameter is empty" mean there?

  1. Why should I do that? If there's no password given, it's treated as wrong password, so that looks OK for me.
  2. How should I do that? If the password is indeed'', I still need to return aPassport. So (except from throwing an exception), there's nothing much I could do about it (especially can't generate a form error message), right?
  3. Why is the comment shown in a code sample about CSRF?

    For instance, if you want to add CSRF to your custom authenticator, you would initialize the passport like this:

=> So I'd say either just delete it, or give a more complete idea of what to do:

if ('' ===$password) {// ... ?}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp