Log message #4189222

# At Username Text
# Jun 12th 2019, 14:11 ricksaccous I have written my own auth though because i wanted to add a field to the check
# Jun 12th 2019, 14:11 ricksaccous haha yeah i've been using that
# Jun 12th 2019, 14:10 neon1024 Oh the middleware? Then I’m out. I’ve only used it once a long time ago in alpha
# Jun 12th 2019, 14:10 ricksaccous I'm using the new authentication plugin thing
# Jun 12th 2019, 14:10 neon1024 I wrote an ApiAuth adapter for my api :slightly_smiling_face:
# Jun 12th 2019, 14:10 ricksaccous but the way the normal authenticator grabs the table info is via a resolver, which works fine right now
# Jun 12th 2019, 14:09 ricksaccous which will identify against an api/tables
# Jun 12th 2019, 14:09 ricksaccous yeah i'm writing a custom identifier
# Jun 12th 2019, 14:08 ricksaccous ohhh
# Jun 12th 2019, 14:08 neon1024 No idea, sorry. I’ve only ever used Auth adapters, I have no idea what a Resolver is. An auth adapter will be a custom way for the AuthComponent to find and identify users
# Jun 12th 2019, 14:07 ricksaccous @neon1024 what's an adapter? isn't a resolver the more re-usable solution?
# Jun 12th 2019, 13:45 ondrej.nedvidek ok it seems I need always to ask and then I find out :) ``` select([ 'id', 'column1', 'column2' => 'null' ]); ```
# Jun 12th 2019, 13:44 neon1024 Which loaded the correct Table instances, and did the thing
# Jun 12th 2019, 13:43 neon1024 @ricksaccous I’d probably write my own Auth adapter
# Jun 12th 2019, 13:42 ricksaccous I think the answer is yessssss
# Jun 12th 2019, 13:40 ondrej.nedvidek Hi there ;) ``` Select id, column1, null as column2 from tableA UNION Select id, column1, column2 from tableB ``` Does anybody know how to specify `union` null fields? As example above
# Jun 12th 2019, 13:40 ricksaccous that supports multiple tables
# Jun 12th 2019, 13:40 ricksaccous would the best way to go about that be to write my own resolver
# Jun 12th 2019, 13:40 ricksaccous if i wanted to potentially verify users across multiple tables
# Jun 12th 2019, 13:40 ricksaccous so
# Jun 12th 2019, 13:35 niel45 many thanks
# Jun 12th 2019, 13:35 neon1024 :thumbsup:
# Jun 12th 2019, 13:34 niel45 @neon1024 looks like that fixed it
# Jun 12th 2019, 13:32 niel45 definitely
# Jun 12th 2019, 13:32 neon1024 Might be worth a go
# Jun 12th 2019, 13:31 niel45 err no
# Jun 12th 2019, 13:31 neon1024 niel45, Did you clear your composer cache?
# Jun 12th 2019, 13:27 niel45 nope, that doesn't help
# Jun 12th 2019, 13:26 niel45 I'll try deleting the composer.lock and doing composer install
# Jun 12th 2019, 13:24 niel45 damn. I have no idea why it suddenly stopped working, or how to fix it
# Jun 12th 2019, 13:24 Arckame niel45, composer is ok for me
# Jun 12th 2019, 13:17 niel45 Is anybody else having problems with 'composer update'? It has been failing since yesterday for me, being unable to install cakephp/migrations because it cannot find a matching package for symfony/yaml
# Jun 12th 2019, 13:15 dereuromark nah for session (stateful) this is not a good idea as static
# Jun 12th 2019, 13:15 Arckame @dereuromark yep, but it use session. Not the best way of just codes and labels. using a static function (like with Number or Hash helpers) looks better. but thank you for the advice :)
# Jun 12th 2019, 13:12 dereuromark you can pass down info, see how tinyauth AuthUser does it
# Jun 12th 2019, 13:11 Arckame the helper function is now static... :D
# Jun 12th 2019, 13:11 Arckame it was obvious...
# Jun 12th 2019, 13:11 Arckame ok found...
# Jun 12th 2019, 13:11 Arckame ...
# Jun 12th 2019, 13:09 Arckame Any idea ?
# Jun 12th 2019, 13:09 Arckame As I don't want to have labels store in both helper and component / controller, what can I do ? maintaining a table ? (not sure it's the best way). Is there is a way to a component to access an Helper or for an Helper access an component ?