wordset / wordset-ui

The ember-based front-end for the Wordset website.
http://www.wordset.org
MIT License
108 stars 23 forks source link

Reset password api request not working #157

Closed danielrw7 closed 9 years ago

danielrw7 commented 9 years ago

Request headers:

POST /api/v1/users/reset_password HTTP/1.1
Host: api.wordset.org
Connection: keep-alive
Content-Length: 127
Accept: */*
Origin: https://www.wordset.org
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36
Authorization: Bearer devdanielrw7:Zi_DX1CtSAwu-gR1xZaW
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.wordset.org/users/reset-password?token=9744c9569c65118c9e0d8c7ccd000b27379aedb165dfca8f48dffde461f846e7
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8

Response headers:

HTTP/1.1 500 Internal Server Error
Connection: keep-alive
Content-Type: text/html; charset=utf-8
Content-Length: 1477
Status: 500 Internal Server Error
X-Request-Id: e3be9a86-24bd-445e-9f37-89fca6365ac9
X-Runtime: 0.009312
Date: Sat, 19 Sep 2015 14:17:27 GMT
X-Powered-By: Phusion Passenger 5.0.8
Server: nginx/1.6.3 + Phusion Passenger 5.0.8
Via: 1.1 vegur
HamptonMakes commented 9 years ago

The issue is that it had been more than 2 hours since you generated that token.

I've made it give a better error now.

HamptonMakes commented 9 years ago

(not that we are displaying that error in the UI, but at least the API should be more expressive)