jaredhanson / passport-local

Username and password authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-local/?utm_source=github&utm_medium=referral&utm_campaign=passport-local&utm_content=about
MIT License
2.74k stars 498 forks source link

LocalStrategy is not called when enctype='multipart/form-data' #140

Open danialkhansari opened 8 years ago

danialkhansari commented 8 years ago

When I set enctype="multipart/form-data" in my form, the POST request does not hit my strategy. Everything's fine without multipart enctype.

dattugvs commented 6 years ago

can you provide your passport strategy and its calling (passport-local triggering) code to find out the problem easily.

jaredhanson commented 3 years ago

What use case do you have that requires a login form to be submitted with multipart/form-data rather than application/x-www-form-urlencoded?

jucamo0713 commented 2 years ago

i have the same problem, in my use case the login valid if a image contain a face.

PhelixTaken commented 1 year ago

Does someone know a fix? I need multipart/form-data for file uploading, but at the same time login the user.