Part of the EllisLab Network
   
3 of 36
3
FreakAuth_light authentication library/admin application released!
Posted: 04 February 2007 08:44 PM   [ Ignore ]   [ # 31 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  155
Joined  01-21-2007

Cant find it in the views that the controller is calling

Profile
 
 
Posted: 04 February 2007 09:16 PM   [ Ignore ]   [ # 32 ]  
Grad Student
Rank
Total Posts:  84
Joined  01-08-2007

Yeah I kind of already stated the freakauth_light release is too heavy for a light package, so I must agree with obsesif. Overall, the package needs less files, less configuration and less features. There’s really great features with freakauth_light but most belong with a full package… and since you’re releasing a full package, I guess it wouldn’t hurt removing some features. But that’s only for danfreak to decide! smile

Everyone’s been pointing out what shouldn’t be included. So I’ll go with what should be included. A light auth package should only include the following (to a bare minimum):
- the auth class/library
- a user model
- login controller
- registration controller
- forgot pass / change pass controllers (optional)

That should be it. User profiles, RSS, admin panel, templating, etc etc. is just too much for a light package.

Thanks for hearing us out danfreak!

Profile
 
 
Posted: 04 February 2007 09:28 PM   [ Ignore ]   [ # 33 ]  
Summer Student
Total Posts:  5
Joined  01-03-2007

Thanks for the help with php4 danfreak, I made a small change to your strsplit code -  removed the embedded function, and that seemed to remove the error…

//PHP5
if (function_exists('str_split'))
{
    $_pass
= str_split($_password);       
}
//PHP4
else
{
// neilski commented out the function wrapper
   // function str_split($_password) {
          
$_pass = array();
          if (
is_string($_password)) {
               
for ($i = 0; $i < strlen($_password); $i++) {
                    array_push
($_pass, $_password[$i]);
               
}
          }
   
//       return $_pass;
  //   }    
}

So, on to the next problem… I tried again, with PHP4, this time with squeaky clean install of CI and FAuth.
I still hit the error… on /index.php/adm

PHP Fatal error:  Call to a member function on a non-object in /webroot/system/application/controllers/adm.php on line 183

when i try to login as the super admin that I created on the installer page. Am I missing something? has anyone got this going on php4?
Cheers,
Neilski.

Profile
 
 
Posted: 05 February 2007 02:51 AM   [ Ignore ]   [ # 34 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  515
Joined  12-05-2006
3Beem.com - 04 February 2007 07:00 PM

Where do I turn off the benchmarks at the bottom of some pages?

Look for this lines (you might find more than one) in controllers

$this->output->enable_profiler(TRUE);

you can delete it or change it to

$this->output->enable_profiler(FALSE);

The reference for this functionality in the user guide can be found in Profiling Your Application

I’ll remove this profiling in next release. It was just to show you what’s going on in terms of queries etc .

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 05 February 2007 03:23 AM   [ Ignore ]   [ # 35 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  515
Joined  12-05-2006
siric - 04 February 2007 09:16 PM

Yeah I kind of already stated the freakauth_light release is too heavy for a light package, so I must agree with obsesif. Overall, the package needs less files, less configuration and less features. There’s really great features with freakauth_light but most belong with a full package… and since you’re releasing a full package, I guess it wouldn’t hurt removing some features. But that’s only for danfreak to decide! smile

Everyone’s been pointing out what shouldn’t be included. So I’ll go with what should be included. A light auth package should only include the following (to a bare minimum):
- the auth class/library
- a user model
- login controller
- registration controller
- forgot pass / change pass controllers (optional)

That should be it. User profiles, RSS, admin panel, templating, etc etc. is just too much for a light package.

Thanks for hearing us out danfreak!

Well guys, it seems to me that there are just a couple of people asking for this.
I called this packge light, not because it’s light in terms of Kb, but because it’s light in terms of resource consuption, queries etc.
The next step will be FrekAuth with ACL inluded and more flexibility in managing roles and permissions.

What seems strange to me is that those that did the request of a lighter package seems to be qute experienced with CI, and then it shouldn’t be a problem for them to customise their needs, and to delete few files.

How long does it take to delete some file…?

What I can do is to release 2 packages:

- a FreakAuth_light full (like it is now)
- a FreakAuth_light essential
  - the auth class/library
  - a user model
  - login controller
  - registration controller
  - forgot pass / change pass controllers (optional)

From what you write me siric, you should just keep:
- the libraries (FreakAuth_light & DB_session)
- the config files
- the Auth controller
- the usermodel
- the FreakAuth_light_helper
- the language file

and delete all the rest. Is this so difficult?

PS: if you delete the public/images/captcha folder, you won’t see CAPTCHA anymore

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 05 February 2007 04:05 AM   [ Ignore ]   [ # 36 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  515
Joined  12-05-2006
siric - 04 February 2007 09:16 PM

That should be it. User profiles, RSS, admin panel, templating, etc etc. is just too much for a light package.

Thanks for hearing us out danfreak!

If you don’t need custom user profiles, you can simply turn them off in the config file (system/application/config/freakauth_light.php):

$config['FreakAuthL_create_user_profile'] = FALSE; //TRUE/FALSE (boolean).  Whether to enable custom user profile

again, if you think you won’t need this feature you can also delete the user_profile table in DB.

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 05 February 2007 04:34 AM   [ Ignore ]   [ # 37 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  515
Joined  12-05-2006
neilski - 04 February 2007 09:28 PM

So, on to the next problem… I tried again, with PHP4, this time with squeaky clean install of CI and FAuth.
I still hit the error… on /index.php/adm

PHP Fatal error:  Call to a member function on a non-object in /webroot/system/application/controllers/adm.php on line 183

when i try to login as the super admin that I created on the installer page. Am I missing something? has anyone got this going on php4?
Cheers,
Neilski.

I don’t really know why you get this error.
It probably is due to PHP4, but dunno why.

Did you check that you have an entry in the admin table after creating the superadmin?

Try to change the code at line 183 to:

$this->db->select('id');

$this->db->where('user_name', $value);

$query = $this->db->get($this->config->item('FreakAuthL_table_prefix' ).'admin' );

Let me know.

Dan

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 05 February 2007 05:39 AM   [ Ignore ]   [ # 38 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  515
Joined  12-05-2006

Did you guys found other bugs?

Do you guys think that we are stable enough for a Beta release?
Or do you think we should wait this week for further testing?

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 05 February 2007 06:01 AM   [ Ignore ]   [ # 39 ]  
Summer Student
Total Posts:  19
Joined  12-26-2006

Hi danfreak,

It’s looking good.. I’m having some fun with CAPTCHA, but don’t think it’s got anything to do with your software… I’m also busy with a port to run it on Oracle backend.. if anyone’s interested, shout and I’ll share.

Profile
 
 
Posted: 05 February 2007 06:11 AM   [ Ignore ]   [ # 40 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  515
Joined  12-05-2006

Cheers Rockster!

Maybe we should wait 1 more week.

Release another alpha, and them move to a beta!

About captcha:

I was thinking about using an alternative way that doesn’t make use of images.

This can be achieved using a question like:

What is 6 + 10 ?:

If the user doesn’t enter 16, the system rejects the form, and redisplays it.

live demo here.

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 05 February 2007 06:19 AM   [ Ignore ]   [ # 41 ]  
Summer Student
Total Posts:  19
Joined  12-26-2006

Hmmm,

Novel idea.. however, wouldn’t it be to easy for the robot’s to ‘read’ and ‘interpret’ your page and post the answer ? Maybe put the maths in the CAPTCHA image… I’m forever having fun with the more distorted images to figure out what letter they want !

Got CAPTCHA working by the way… as suspected, the problem was between the screen and the chair.

Profile
 
 
Posted: 05 February 2007 07:52 AM   [ Ignore ]   [ # 42 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  155
Joined  01-21-2007

Hi Danfreak,
  Do you have any plans on adding Usergroups?

Profile
 
 
Posted: 05 February 2007 07:58 AM   [ Ignore ]   [ # 43 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  515
Joined  12-05-2006

Yes,

the plan for FrakAuth (not Freakauth_light) is to have custom user roles/groups.

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 05 February 2007 08:05 AM   [ Ignore ]   [ # 44 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  155
Joined  01-21-2007

just wondering if you have any ETA for Frakauth? as for my website im gonna have a clubber group, promoter group, and photographer group, but certain ones should be able to access certain areas…

Also, one last thing, how can I check if a user is logged in? I want to display Login if they arent and if they are display Logout

Thanks
Robert

Profile
 
 
Posted: 05 February 2007 08:11 AM   [ Ignore ]   [ # 45 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  515
Joined  12-05-2006
3Beem.com - 05 February 2007 08:05 AM

Also, one last thing, how can I check if a user is logged in? I want to display Login if they arent and if they are display Logout

Thanks
Robert

To check if an user is logged in have a look at the documentation: Securing your application

For displaying the ‘welcome guest/login’ - ‘welcome username/logout’ anchors, in your view past this code

<?=loginAnchor();?>

Have a look in views/template/content.php

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
   
3 of 36
3
 
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 819, on March 11, 2010 11:15 AM
Total Registered Members: 119941 Total Logged-in Users: 51
Total Topics: 126078 Total Anonymous Users: 2
Total Replies: 663191 Total Guests: 467
Total Posts: 789269    
Members ( View Memberlist )
Newest Members:  Simon Patersonyuewoyacuba_lemarcelskajthp02guthreg1shookyFreesenukeassistantnoobs