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

Method checkNameConflicts

app/models/User.js:243–250  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

241 }
242
243 static checkNameConflicts (name) {
244 return new Promise((resolve, reject) => $.ajax(`/auth/name/${encodeURIComponent(name)}`, {
245 cache: false,
246 success: resolve,
247 error (jqxhr) { return reject(jqxhr.responseJSON) },
248 },
249 ))
250 }
251
252 static checkEmailExists (email) {
253 return new Promise((resolve, reject) => $.ajax(`/auth/email/${encodeURIComponent(email)}`, {

Callers 5

checkNameMethod · 0.80
checkNameMethod · 0.80
checkNameMethod · 0.80
onSubmitFormMethod · 0.80
uniqueNameFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected