Interim update
This commit is contained in:
8
Server/plugins/genie_authentication.jl
Normal file
8
Server/plugins/genie_authentication.jl
Normal file
@@ -0,0 +1,8 @@
|
||||
using Genie
|
||||
|
||||
import Server.AuthenticationController
|
||||
import Server.Users
|
||||
import SearchLight: findone
|
||||
|
||||
export current_user
|
||||
current_user() = findone(Users.User, id = get_authentication())
|
Reference in New Issue
Block a user