asayler / COG-Web

Web Frontend for COG
GNU Affero General Public License v3.0
2 stars 3 forks source link

No Error on Bad Login #31

Closed asayler closed 8 years ago

asayler commented 8 years ago

Since 4c20130, the login screen spins forever if the user supplies bad login credentials. It should instead return an error to the user indicating a failed login attempt.

From the error log:

debug.js:439: cog-web:page:login attempting to authenticate user `student1` +4s
https://test.api.cog.csel.io/my/token/: Failed to load resource: the server responded with a status of 401 (UNAUTHORIZED)
login.js:34: Uncaught ReferenceError: error is not defined
hexacyanide commented 8 years ago

Thanks for the catch - PR #32 should take care of this.