faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
<FromGitter> <Blacksmoke16> using docker @kavisha18 ?
<FromGitter> <Blacksmoke16> could be that you're installing it locally but its not being installed in the container possibly?
_whitelogger has joined #amber
wantansoup has joined #amber
<FromGitter> <damianham> @kavisha18 it returns a Promise, are you using it the right way ? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5d396f3b6463976d8a9efa80]
feepbot has quit [Ping timeout: 246 seconds]
feepbot has joined #amber
_whitelogger has joined #amber
<FromGitter> <nsuchy> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5d39b6022718c760ee4e6585]
<FromGitter> <nsuchy> Am I missing something here?
<FromGitter> <nsuchy> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5d39b625e16c666d89687d42]
<FromGitter> <nsuchy> nevermind
<FromGitter> <nsuchy> I need more coffee
<FromGitter> <nsuchy> I typed admin authenticate
<FromGitter> <nsuchy> instead of admin controller
<FromGitter> <nsuchy> in my routes file
<FromGitter> <nsuchy> lmao
<FromGitter> <Blacksmoke16> gg
<FromGitter> <damianham> :)
<FromGitter> <Blacksmoke16> wb
<FromGitter> <nsuchy> @Blacksmoke16 thanks moving has been exuasting
<FromGitter> <nsuchy> I then had a load of projects to rush for clients
<FromGitter> <Blacksmoke16> ouch :/
wantansoup has quit [Quit: Leaving]
vivus has joined #amber
<FromGitter> <nsuchy> In my nav I tried
<FromGitter> <nsuchy> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5d3a08ad85d4da3d8ba6719a]
<FromGitter> <nsuchy> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5d3a08bb4a32b65507d61efb]
<FromGitter> <nsuchy> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5d3a09d6f4c906673aea7d46]
<FromGitter> <nsuchy> this also fails
vivus has quit [Remote host closed the connection]
<FromGitter> <Blacksmoke16> what is `current_user`
<FromGitter> <Blacksmoke16> @nsuchy ^
<FromGitter> <drujensen> So you will see that `current_user` is only defined in your `AdminAuthenticate` plugin but it may not be loaded for routes that are insecure.
<FromGitter> <drujensen> @nsuchy you may need to move that code somewhere else like an initializer.: ⏎ ⏎ ```class HTTP::Server::Context ⏎ property current_user : User? ⏎ end``` [https://gitter.im/amberframework/amber?at=5d3a19a4ca086f6739da68ba]
<FromGitter> <drujensen> move this out of the `AdminAuthenicate.cr` and make sure its loaded
<FromGitter> <drujensen> This re-opens the class `HTTP::Server:Context` and adds the property `current_user`
vivus has joined #amber
<FromGitter> <nsuchy> don't judge me, but, ended up making an API endpoint that returns json, and having a javascript enable the link if it returns true
<FromGitter> <nsuchy> lol
<FromGitter> <nsuchy> IfItWorks ™ pending at ULayer
<FromGitter> <nsuchy> 😂
vivus has quit [Remote host closed the connection]