Open tschaffter opened 10 years ago
Sorry, Been busy today so only just had a chance to look at this. The problem was in the javascript that I changed to handle my json payload experiment. I have reverted the commit and it should be good now.
Login is ok but entering two different passwords during signing up is still silently accepted.
A unit test using Karma or even an end-to-end test using Protector could prevent committing broken login interface. I may even write it myself, in which case I'll share the code with you.
Result: Form is accepted and redirection to Dashboard, console message: GET http://localhost:8080/oauth2-provider/v1.0/me 401 (Unauthorized) jquery-1.8.2.min.js:2
Expected: a message saying that the two passwords don't match
Result: Form is accepted and redirection to Dashboard, console message: GET http://localhost:8080/oauth2-provider/v1.0/me 401 (Unauthorized) jquery-1.8.2.min.js:2
Result: Message "Email and/or password did not match a user account." POST http://localhost:8080/oauth2-provider/oauth/token 400 (Bad Request) jquery-1.8.2.min.js:2
UPDATE: I numbered the points from 1. to 3. but they all appear as 1.