MCPcopy Create free account
hub / github.com/codecombat/codecombat / checkEmailExists

Method checkEmailExists

app/models/User.js:252–259  ·  view source on GitHub ↗
(email)

Source from the content-addressed store, hash-verified

250 }
251
252 static checkEmailExists (email) {
253 return new Promise((resolve, reject) => $.ajax(`/auth/email/${encodeURIComponent(email)}`, {
254 cache: false,
255 success: resolve,
256 error (jqxhr) { return reject(jqxhr.responseJSON) },
257 },
258 ))
259 }
260
261 static getNapervilleDomain () {
262 // it can be stu.naperville203.org or naperville203.org and there are no premium benefits directly so safe to check without @

Callers 6

checkEmailMethod · 0.80
successMethod · 0.80
checkEmailMethod · 0.80
checkEmailMethod · 0.80
initializeMethod · 0.80
uniqueEmailFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected