site-libsoc/Server/plugins/genie_authentication.jl

8 lines
184 B
Julia
Raw Permalink Normal View History

2023-07-30 17:04:15 +07:00
using Genie
import Server.AuthenticationController
import Server.Users
import SearchLight: findone
export current_user
current_user() = findone(Users.User, id = get_authentication())