public
/
ndcode_site.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Structure upgrade: delete session.signed_in_as key instead of setting to null
[ndcode_site.git]
/
_lib
/
get_account.jst
1
return async (root, session) => {
2
let signed_in_as = await session.get_json('signed_in_as')
3
if (signed_in_as === undefined)
4
return undefined
5
let accounts = await root.get('accounts', {})
6
return await accounts.get(signed_in_as, {})
7
}