GenieFramework / GenieFramework/GenieAuthentication.jl
How to access current_user in side custom controller?
Open
- Dominant language
- Julia
- Stars
- 23
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
I can't do this:
```
module AdminController
using GenieAuthentication, Genie.Renderer, Genie.Exceptions, Genie.Renderer.Html
function index()
authenticated!()
# h1("Welcome Admin") |> html
current_user().name
end
end
```
But in a routes.jl file I can do this
```
route("/auth") do
current_user().name
end
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.