rluders / wn-jwtauth-plugin

JWTAuth Plugin for WinterCMS
GNU General Public License v3.0
29 stars 28 forks source link

Invalid response Content-Type when username has already been taken. #38

Closed paishin closed 3 years ago

paishin commented 3 years ago

I am facing a very strange issue where when a username has already been taken the response I get is in html instead of text/json. If the email has been taken then the response is in text/json.

Also I have found out that this depends on the primary login method of the 'Users Plugin'; if set to username then username taken returns text/json and email returns text/html.

image

image

davidsotaabdd commented 3 years ago

@paishin I, too, had noticed this in a project we've been developing; I simply did not have the time to report it. Thank you for this!

I can, however, add that this also seems to happen when a token expires or is blacklisted.

rluders commented 3 years ago

Interesting. If someone had time to fix it, I'll accept the PR. Otherwise, I can fix it in +2 weeks. Really busy time for me right now.

rluders commented 3 years ago

It should be fixed right now.