Closed atd closed 8 years ago
@atd, @pablojan, integrated in Teem by https://github.com/P2Pvalue/teem/commit/7d1ec7593ec9c69aafa8d6abc5b0cd7e1402677e
@pablojan, when repeating an username using the old SwellRT.register
method I got "INVALID_USERNAME_EXCEPTION" instead of the expected "ACCOUNT_ALREADY_EXISTS"
@pablojan, when using the new SwellRT.createUser
I got a CORS problem:
Solicitud desde otro origen bloqueada: la política de mismo origen impide leer el recurso remoto en http://swellrt:9898/swell/account (razón: falta la cabecera CORS 'Access-Control-Allow-Origin').
SwellRT.registerUser is deprectated. You shouldn't use it to check if an account already exists. About the CORS problem, it was a mistake during the commit. Fixing it now.
Currently the registration error body is HTML
It would be nicer if those errors were returned in JSON, so developers do not need to parse the HTML