Part of the EllisLab Network
   
2 of 25
2
FreakAuth light 1.0.4 released
Posted: 16 May 2007 01:03 PM   [ Ignore ]   [ # 11 ]  
Lab Assistant
RankRank
Total Posts:  192
Joined  04-03-2007
grahack - 16 May 2007 12:24 PM

but I can’t see any config/freakauth.php in the zip file, can you tell us where did you find it?

No, because I don’t know where it came from either. confused

grahack - 16 May 2007 12:24 PM

found some other hardcoded index.php (did you remove or rename yours ?)

I did now, thanks.


I noticed the wiki has a FAQ, but didn’t find same on the official website.  The formatting leaves a lot to be desired on the wiki.  It is a nice place for the community to contribute to the FAQ though.  That said, might be nice to include FAQ on the official website.

Along the lines of feedback, I don’t know if this library has the capability now, but has there been any thought to be able to kick users off (log them out).  For instance, maybe superadmin pulls up users logged in and logs them out.  Or similarly if user is logged in and attempts to log in again the previous session user is logged out.  In the case of something like BambooInvoice, the same user can log in multiple times simultaneously.  But in other situations, you might want to allow a user to have only one instance logged in at a time.  Maybe this would be another field in the database where there might be a boolean whether or not to permit multiple instances of an user.

Profile
 
 
Posted: 16 May 2007 01:40 PM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  492
Joined  02-21-2007
a&w - 16 May 2007 01:03 PM
grahack - 16 May 2007 12:24 PM

found some other hardcoded index.php (did you remove or rename yours ?)

I did now, thanks.

I didn’t mean ‘did you fix the code’, but ‘did you rename the CI index.php file’.
Your problem may come from this.

I noticed the wiki has a FAQ, but didn’t find same on the official website.  The formatting leaves a lot to be desired on the wiki.  It is a nice place for the community to contribute to the FAQ though.  That said, might be nice to include FAQ on the official website.

1) are you french? ‘leaves a lot to be desired’ is one of our expression here
2) I’d like to centralize things. Dan wants to keep his 4webby stuff, but I think that things should reside in one unique place. You can reformat the FAQ if you want. When we have time, we’ll work on the docs/tutos/wiki/ciforge…

Along the lines of feedback, I don’t know if this library has the capability now, but has there been any thought to be able to kick users off (log them out).  For instance, maybe superadmin pulls up users logged in and logs them out.  Or similarly if user is logged in and attempts to log in again the previous session user is logged out.  In the case of something like BambooInvoice, the same user can log in multiple times simultaneously.  But in other situations, you might want to allow a user to have only one instance logged in at a time.  Maybe this would be another field in the database where there might be a boolean whether or not to permit multiple instances of an user.

This ‘one login for one user’ functionnality has been discussed once, in the giant thread. It could be done this way, with a boolean somewhere, between the Sun and Pluto. Maybe we’ll create a new config item for this functionnality in next release.

I don’t understand the ‘kick users off’...

Profile
 
 
Posted: 16 May 2007 02:05 PM   [ Ignore ]   [ # 13 ]  
Research Assistant
RankRankRank
Total Posts:  359
Joined  10-02-2006

I made a test installation of this today. A couple of issues:

The username validation does not seem to work as it should. Test: Leaving the username field blank does not generate any error messages, so validation then fails quite silently (email string passed back). I see the rule used, of course, but don’t quite see why it should fail silently with required in there. You may want to test this case yourself to see if it works as you intended.

The second issue encountered is with custom user profiles. This is well explained in the tutorial on the site and easily implemented, in theory. However, the admin controller works as described, while custom fields added to the registration form (register.php) under auth are not set nor, obviously, validated. I am perhaps missing something basic here about how the values are passed around. It’s a lot of code to figure out at first sight. I’ll keep looking and learning.

Finally, you have done a lot of very good work on this. I saw 3000+ downloads of your code this morning…and 1 whole euro in donations. Thinking the lingering 1 was a hardcoded remnant of the first beta, I dropped a few coins in the PayPal bucket. Lo and behold, that figure actually autoincrements!

I mean, CI people, c’mon. The FreakTeam has received just about enough for one beer and three straws…

 Signature 

CI version?
From SVN.

Profile
 
 
Posted: 16 May 2007 02:08 PM   [ Ignore ]   [ # 14 ]  
Research Assistant
RankRankRank
Total Posts:  359
Joined  10-02-2006

Kick users off would refer to a blacklist = banned. So yes. But not by IP.

Edit: I guess he means getting the boot Live. It would be hard to top that for rudeness… wink

 Signature 

CI version?
From SVN.

Profile
 
 
Posted: 16 May 2007 03:15 PM   [ Ignore ]   [ # 15 ]  
Lab Assistant
RankRank
Total Posts:  192
Joined  04-03-2007
grahack - 16 May 2007 01:40 PM

I didn’t mean ‘did you fix the code’, but ‘did you rename the CI index.php file’. Your problem may come from this.

My “problem” is fixed by replacing the hardcoded index.php as previously mentioned.  I came across this ‘bug’ because on my server I actually have to change the config to:

|--------------------------------------------------------------------------
|
Index File
|--------------------------------------------------------------------------
|
|
Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['
index_page'] = "index.php?"; //Note I need the ?
//$config['
index_page'] = ""; //hardcoded would be a problem who have this also maybe?


In any event, I needed “index.php?” so what was previously hardcoded “index.php” caused problems.

I’d like to centralize things. Dan wants to keep his 4webby stuff, but I think that things should reside in one unique place.

Ok, so it’s a suggestion for Dan as his site is nice, to also include the FAQ.  I looked more at his site than I did at the wiki, even though the wiki may have more content.  Again, I’m just getting to know FAL so I’m looking a bit all over right now.  Another thing to do might be to distribute the userguide & FAQ with the package (assuming it’s not there already and I missed it).  Maybe put a link in the footer of the distribution that links to the userguide, etc.

You can reformat the FAQ if you want. When we have time, we’ll work on the docs/tutos/wiki/ciforge…

I’m new to CI, I’m not a professional programmer, but have been following FAL with interest from a distance.  I was a bit afraid of the so much action and being a newbie and didn’t understand stuff.  Even when I shopped around for PHP frameworks what got me to CI was the userguide.  I would not have tried CI if not for the userguide.  So to that end, I suspect there’d be even more usage of FAL with better documentation.  But truthfully, with the distributed examples, there’s a lot already there for “documentation”.

Crimp - 16 May 2007 02:08 PM

I don’t understand the ‘kick users off’...

Edit: I guess he means getting the boot Live. It would be hard to top that for rudeness… wink

As it turns out I’m American, not French.  I did do some backpacking overseas for 6 months and commonly heard “you are not your typical rude american”, which I didn’t appreciate until I returned back to the USA, and I remember thinking 2 steps past customs how rude americans are.
Blacklisting would be a similar feature that I’m talking about.  But I was really inquiring about getting the boot (sounds like an English/Irish saying) live.  I personally don’t see the need to get the boot live, but I do see a use for the option to limit users from logging in only once at any given time.  I’m not sure but maybe this entails having another table where all logged in users are kept.  Then if someone logs in again, check if that person is already logged in, if they are logged in check if that user is allowed multiple instances, and then add to the logged in users table.  If they are not allowed multiple instances, remove the original instance and add the new instance.  Again, I’m not a pro, so my logic may be somewhere around Uranus red face  (between the Sun and Pluto?).

Donations
Actually before you even mentioned it I was trying to look for where to make a donation.  I think I saw where one time but can’t find it again.  In the distribution package homepage it mentions the donation, but there is no active link or directions?  Suggest you make an active link at the various sites, especially in the distribution’s homepage.

Profile
 
 
Posted: 16 May 2007 03:34 PM   [ Ignore ]   [ # 16 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  492
Joined  02-21-2007

Thanks for giving us some feedback.

Crimp - 16 May 2007 02:05 PM

The username validation does not seem to work as it should.

Could you detail the situation, the controller/method ?
We did test every field I think. Strange…

The second issue encountered is with custom user profiles. This is well explained in the tutorial on the site and easily implemented, in theory. However, the admin controller works as described, while custom fields added to the registration form (register.php) under auth are not set nor, obviously, validated.

No, nothing is done at the registration level. No way.
There was some work on a controller that lets users to handle their profile (see one of the tutos).
This is a good idea to make those fields appear in the register form, maybe… one day…

Thinking the lingering 1 was a hardcoded remnant of the first beta, I dropped a few coins in the PayPal bucket. Lo and behold, that figure actually autoincrements!

My English is not good enough to understand what you’re saying!!! could you explain this last sentences? (except ‘I dropped a few coins in the PayPal bucket’ which I understood fully)

Profile
 
 
Posted: 16 May 2007 03:37 PM   [ Ignore ]   [ # 17 ]  
Lab Assistant
RankRank
Total Posts:  192
Joined  04-03-2007

In the config/config.php file in the distribution, this was added at the end of the file.

$config['date_format'] = 'd-m-Y H:i';

I don’t see it being used anywhere, so why alter the config unnecessarily?  If it does have purpose, maybe add a comment just before it as is done throughout the rest of the file?

Profile
 
 
Posted: 16 May 2007 03:45 PM   [ Ignore ]   [ # 18 ]  
Lab Assistant
RankRank
Total Posts:  192
Joined  04-03-2007
grahack - 16 May 2007 03:34 PM

Thinking the lingering 1 was a hardcoded remnant of the first beta, I dropped a few coins in the PayPal bucket. Lo and behold, that figure actually autoincrements!

My English is not good enough to understand what you’re saying!!! could you explain this last sentences? (except ‘I dropped a few coins in the PayPal bucket’ which I understood fully)

I think he/she meant:
1. There is a counter that shows donations/contributions.
2. That counter showed “1”, which was thought to be $1 or Euro or whatever currency you use.
3. So if the currency is $, if he put some money into it (dropped a few coins is an expression), for example $10, then the new counter was expected to be 10 + 1 = 11, but instead apparently was 1 previous donation + 1 new donation = 2 total donations.

Profile
 
 
Posted: 16 May 2007 03:53 PM   [ Ignore ]   [ # 19 ]  
Lab Assistant
RankRank
Total Posts:  192
Joined  04-03-2007
a&w - 16 May 2007 03:15 PM

Donations
Actually before you even mentioned it I was trying to look for where to make a donation.  I think I saw where one time but can’t find it again. 

Disregard. I must be blind.  cool hmm  It’s only a big orange star with a big donate next to it.  It’s almost too big.  Putting a link in the download package’s homepage where it says “donate” would be another good spot.

Profile
 
 
Posted: 16 May 2007 03:55 PM   [ Ignore ]   [ # 20 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  492
Joined  02-21-2007
a&w - 16 May 2007 03:37 PM

In the config/config.php file in the distribution, this was added at the end of the file.

$config['date_format'] = 'd-m-Y H:i';

I don’t see it being used anywhere, so why alter the config unnecessarily?  If it does have purpose, maybe add a comment just before it as is done throughout the rest of the file?

This is an item in the CI main config file, that you found (I guess) in config_demo.php.
Nothing to do with FAL. ‘config_demo.php’ is a demo for the main CI config file.

Profile
 
 
   
2 of 25
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 64457 Total Logged-in Users: 19
Total Topics: 80969 Total Anonymous Users: 1
Total Replies: 435701 Total Guests: 184
Total Posts: 516670    
Members ( View Memberlist )