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