Matheus Fernandes
8 years ago
No known key found for this signature in database
GPG Key ID: DD07CA4EA7B65C4F
1 changed files with
3 additions and
3 deletions
-
lib/login.js
|
|
@ -27,11 +27,11 @@ async function getVerificationData(url, email) { |
|
|
|
body: data |
|
|
|
}) |
|
|
|
|
|
|
|
if (res.status !== 200) { |
|
|
|
throw new Error('Verification error') |
|
|
|
} |
|
|
|
|
|
|
|
const body = await res.json() |
|
|
|
if (res.status !== 200) { |
|
|
|
throw new Error(`Verification error: ${res.status} – ${body}`) |
|
|
|
} |
|
|
|
return body |
|
|
|
} |
|
|
|
|
|
|
|