Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codecombat/codecombat
/ getSlugOrID
Method
getSlugOrID
app/models/User.js:221–221 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
219
}
220
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
Callers
1
onLoaded
Method · 0.80
Calls
1
get
Method · 0.95
Tested by
no test coverage detected