Pear-Trading / Foodloop-Server

1 stars 0 forks source link

Fix user registration #137

Open Rumperuu opened 4 years ago

Rumperuu commented 4 years ago

The user registration does not currently work. Even having added a token to the database:

"in_resultset" Error, Token invalid or has been used.

{…}
​error: {…}
​​error: "in_resultset"
​​message: "Token invalid or has been used."
​​success: false
​​<prototype>: Object { … }
​headers: Object { normalizedNames: Map(0), lazyUpdate: null, lazyInit: lazyInit() }
​message: "Http failure response for https://dev.localspend.co.uk/api/register: 401 Unauthorized"
​name: "HttpErrorResponse"
​ok: false
​status: 401
​statusText: "Unauthorized"
​url: "https://dev.localspend.co.uk/api/register"
​<prototype>: {…}
​​constructor: class HttpErrorResponse { constructor(init) }
​​<prototype>: Object { … }
register.component.ts:86:18