Closed Sov-trotter closed 1 year ago
I think it needs a few more fixes to support Genie 5 - I'll take a look
I've tried some more:
I've removed the line using ViewHelper
ran ] add SHA, GenieSession, GenieSessionFileSession
Changed the following import and using statements
using Users
to using AuthApp.Users
in AuthenticationController.jl
and in genie_authentication.jl
but with import
import AuthenticationController
to import AuthApp.AuthenticationController
in genie_authentication.jl
using UsersValidator
to using AuthApp.UsersValidator
in Users.jl
Continued with the rest of this docs: https://genieframework.com/docs/genie/v5/tutorials/4-1--Developing_MVC_Web_Apps.html and started with bin/repl
but I get this error:
Loading resources┌ Warning: 2022-08-08 21:47:39 Route named `show_login` is not defined
└ @ Genie.Router ~/.julia/packages/Genie/VkSPs/src/Router.jl:345
┌ Warning: 2022-08-08 21:47:40 Route named `show_login` is not defined
└ @ Genie.Router ~/.julia/packages/Genie/VkSPs/src/Router.jl:345
ERROR: UndefVarError: Users not defined
Stacktrace:
[1] top-level scope
@ ~/Code/GenieTests/AuthApp/app/resources/authentication/AuthenticationController.jl:6
in expression starting at /Users/ok/Code/GenieTests/AuthApp/app/resources/authentication/AuthenticationController.jl:6
The resulting repo can be found here: https://github.com/Wikunia/AuthApp.jl
With this commit: https://github.com/Wikunia/AuthApp.jl/commit/73da067fd601bbe34d1e778ae0d7af6d69ecd46c
I was able to redirect myself to the show login page, login and check that I'm actually logged in. Though I'm still getting the ERROR: UndefVarError: Users not defined
error when starting with bin/repl
All the issues should now be solved in v2.1.1
I now understand that the issue https://github.com/GenieFramework/Genie.jl/issues/554 might have been partly caused by
GenieAuthenticator
.I followed the steps in the readme. Somehow the modules like
Users
,AuthenticationController
are not loaded into the scope.cc : @essenciary