Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
WanWizard
a.k.a. WanWizard
Discussions
4
Comments
8243
Activity
opauth + google-strategy is not returning nickname
That can not be avoided, you have the same with providers that do provide a nickname. If no user is logged in, and you have auto_registration enabled, it will attempt to do so. It has no way of knowing both users are the same physical person. So …
Comment by
WanWizard
March 2014
permalink
opauth + google-strategy is not returning nickname
Yes, the code that checks if a nickname exists should also check for the email. Haven't looked at that yet, wanted to fix this first.
Comment by
WanWizard
March 2014
permalink
opauth + google-strategy is not returning nickname
I understand that it has to change to "nickname or email", that should work if you change that code to: // did the provider return enough information to log the user in? if (($this->get('auth.info.nickname') or $this->get(…
Comment by
WanWizard
March 2014
permalink
Understanding EAV
In a standard ORM Model, if you do $model->property, then "property" is either the name of a column (i.e. it's listed in your $_properties array), or it is a custom property (i.e. it is stored in the model but not part of the recor…
Comment by
WanWizard
March 2014
permalink
opauth + google-strategy is not returning nickname
A user with the same email is the same user? Or do I miss your point? And I'd say your application design is wrong. If someone is logged in to the application (as user X) and someone else is logged into facebook at the same time (say user Y), …
Comment by
WanWizard
March 2014
permalink
opauth + google-strategy is not returning nickname
I will have a look. As to the current behaviour, I believe that is correct. If someone is already logged in, and an attempt is made to login again, it is to link the two. It is up to your application to block access to the login page (a "you a…
Comment by
WanWizard
March 2014
permalink
Understanding EAV
Define "new properties"? new in what?
Comment by
WanWizard
March 2014
permalink
Auto load lang files from a module
No, it works, but you need to load the module first. If the module is not loaded, the Finder doesn't know the path to the module (as you can define multiple module locations, or even per-module locations). So use: 'modules' => …
Comment by
WanWizard
March 2014
permalink
Auto load lang files from a module
Auto loading from a module is not supported at the moment.
Comment by
WanWizard
March 2014
permalink
opauth + google-strategy is not returning nickname
What do you suggest? Use email if nickname is not present?
Comment by
WanWizard
March 2014
permalink
opauth + google-strategy is not returning nickname
The Fuel Opauth class doesn't do anything with the data received, other than passing it through. So it's either an issue of Opauth (the composer package), or of the connection with Google). nickname is part of the info collection, with i…
Comment by
WanWizard
March 2014
permalink
Debug Oil Task Cronjob in Shared Hosting
If you don't have a commandline, that will not be possible. I have never used shared hosting, so I don't know. Can you run a cron job that redirects it's output? Maybe you can do * * * * * FUEL_ENV=DEVELOPMENT php /path/into/myfuel…
Comment by
WanWizard
March 2014
permalink
Debug Oil Task Cronjob in Shared Hosting
Have you checked your cron logs to see if it actually starts? It is very likely that you don't have an environment in a cron call, which means no search paths, which means 'php' can not be found. I need to prefix it here with the ful…
Comment by
WanWizard
March 2014
permalink
Debug Oil Task Cronjob in Shared Hosting
Shouldn't the environment be lower case? But that shouldn't matter in this case, "development" is the default environment, so this should work fine. To debug it, make sure you're log level is set high enough, so you don…
Comment by
WanWizard
March 2014
permalink
Facades in Fuel 2.0
1. We don't know yet, it's not ready at the moment. 2. Possibly. If you don't need it, you don't have to use it. The 2.0 'Facade' classes don't contain any logic (the v1 static interface does). For some they are…
Comment by
WanWizard
March 2014
permalink
Rest Api Routing
Theoretically that should work fine. "Controller_Api_1_Test" should map to ./app/classes/controller/api/1/test.php. The only thing I'm not sure about is if it likes the numeric part, we use "v1", "v2", etc in our…
Comment by
WanWizard
March 2014
permalink
MySQL Update Column +1
To prevent the query builder from escaping or quoting your expression, you have to tell it you're defining an expression, and not a literal or a column name: $result = DB::update('table') ->value("count ",DB::expr('…
Comment by
WanWizard
March 2014
permalink
Maximum nesting level for Debug::dump
Not exactly hidden, just not documented... ;-) \Debug::$max_nesting_level = 5; \Debug::$js_toggle_open = false; You can change both the maximum nesting level, and whether or not everything is collapsed (default) or expanded.
Comment by
WanWizard
March 2014
permalink
Opauth/Oauth + Rest API
That might prove to be a challenge. RESTful services are per definition not (user) interactive, but OAuth authentication is. Fuel's Auth class only uses Opauth for the initial login, once done, it uses it's own internal tracking of the lo…
Comment by
WanWizard
March 2014
permalink
REST controller
What do you mean? You already know it's a list of transactions?
Comment by
WanWizard
March 2014
permalink
Hybrid Controller - way to decide wich action to fire
If you want something truly hybrid, and you want to re-use the same action name (login in this case) for two different "actions" (showing a form and processing it's data), then yes. You have to think about how you are going to repopu…
Comment by
WanWizard
March 2014
permalink
Hybrid Controller - way to decide wich action to fire
If your action only ever does one thing, it's fine to call it "action_methodname". If it does multiple things (which whould require you to check the method for both GET and POST for example) I would split it in a "get_methodnam…
Comment by
WanWizard
March 2014
permalink
Simpleauth - Model_User
Thanks for confirming it. I will push a fix to 1.8/develop later. What you need in your app bootstrap is: Autoloader::add_classes(array( 'Model\\Auth_User' => APPPATH.'classes/model/auth/user.php', ));
Comment by
WanWizard
March 2014
permalink
Simpleauth - Model_User
In the current version, it hardcoded only uses the fields defined in Auth. It looks like it is out of sync with the current capabilities of the ORM (which can create metadata on the fly now). As a test, can you replace the foreach block at line 280…
Comment by
WanWizard
March 2014
permalink
Simpleauth - Model_User
Well, it is, in the end it's just a table. But you will have to create your own ORM model, as the one supplied with the Auth package isn't compatible with the Simpleauth users table layout. And as you mentioned you can not use create_user(…
Comment by
WanWizard
March 2014
permalink
More Comments
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
About
Username
WanWizard
Joined
January 2011
Visits
2,387
Last Active
11:04AM
Roles
Administrator