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

Method hasNoPasswordLoginMethod

app/models/User.js:223–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 getSlugOrID () { return this.get('slug') || this.get('_id') }
222
223 hasNoPasswordLoginMethod () {
224 // Return true if user has any login method that doesn't require a password
225 return Boolean(this.get('facebookID') || this.get('gplusID') || this.get('githubID') || this.get('cleverID')) || (this.get('oAuth2Identities')?.length > 0)
226 }
227
228 currentPasswordRequired () {
229 // Return true if current password should be given for password change

Callers 1

Calls 1

getMethod · 0.95

Tested by

no test coverage detected