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
8248
Activity
opauth + google-strategy is not returning nickname
Not a bad idea. I'll think about it. Or, you can send in a pull request for it?
Comment by
WanWizard
March 2014
permalink
opauth + google-strategy is not returning nickname
You should only use auto_registration if you don't care about local account, and you don't want to link accounts. It's there for simple "login using twitter" kind of scenario's. You shouldn't use it for more comp…
Comment by
WanWizard
March 2014
permalink
opauth + google-strategy is not returning nickname
I think that is a very bad idea. If you implement something like this, I can create a fake account somewhere that has someone else's email address, with which I can steal that persons account in your application without knowing the password. …
Comment by
WanWizard
March 2014
permalink
Queue package
Cool. One question though, instructions say: Make a new file in fuel/app/tasks with the name queue.php on your application with the follow code:
Comment by
WanWizard
March 2014
permalink
Password Change feture not working
It throws exceptions if the input is not correct. And returns a boolean if it does. What does it return?
Comment by
WanWizard
March 2014
permalink
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
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,474
Last Active
2:34PM
Roles
Administrator