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

Method currentPasswordRequired

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

Source from the content-addressed store, hash-verified

226 }
227
228 currentPasswordRequired () {
229 // Return true if current password should be given for password change
230 const spying = window.serverSession?.amActually
231 return !spying && !this.get('newPasswordRequired') && !this.hasNoPasswordLoginMethod()
232 }
233
234 static getUnconflictedName (name, done) {
235 // deprecate in favor of @checkNameConflicts, which uses Promises and returns the whole response

Callers

nothing calls this directly

Calls 2

getMethod · 0.95

Tested by

no test coverage detected