Browse Source

n2o to n4u app name

221V 1 year ago
parent
commit
f7cce6040c
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/nitro_n2o.erl
  2. 1 1
      src/nitro_static.erl

+ 2 - 2
src/nitro_n2o.erl

@@ -90,14 +90,14 @@ html_events(#pickle{source = Source, pickled = Pickled, args = Linked}, State =
 
 %% todo move work with session to n2o (n4u)
 prolongate() ->  %% todo mv this from nitro
-  case application:get_env(n2o, session) of
+  case application:get_env(n4u, session) of
     {ok, M} -> M:prolongate();
     undefined -> false
   end.
 
 
 authenticate(I, Auth) -> %% todo mv this from nitro
-  (application:get_env(n2o, session, n2o_session)):authenticate(I, Auth).
+  (application:get_env(n4u, session, n2o_session)):authenticate(I, Auth).
 
 
 %% calling user code in exception-safe manner

+ 1 - 1
src/nitro_static.erl

@@ -41,7 +41,7 @@ forbidden(Req, State) -> {false, Req, State}.
 
 
 fixpath(Path) ->
-  {Module,Fun} = application:get_env(n2o, fixpath, {nitro_static, fix}), %% todo mv this from nitro
+  {Module,Fun} = application:get_env(n4u, fixpath, {nitro_static, fix}), %% todo mv this from nitro
   Module:Fun(Path).