Part of the EllisLab Network
   
22 of 36
22
FreakAuth_light authentication library/admin application released!
Posted: 14 March 2007 10:39 AM   [ Ignore ]   [ # 316 ]  
Summer Student
Total Posts:  3
Joined  08-23-2006

Side note, where can I find an RSS feed where you will announce new releases or changelog?

Thanks!

Profile
 
 
Posted: 14 March 2007 10:53 AM   [ Ignore ]   [ # 317 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006
KnightDaemon - 14 March 2007 10:39 AM

Side note, where can I find an RSS feed where you will announce new releases or changelog?

Thanks!

I was already thinking to build the news page on 4webby.com/freakauth.html

I’ll also add an RSS feed!

Cheers for the suggestion!

I’ll do my best to do a release this week. I hope to manage!

grin

 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: 14 March 2007 12:29 PM   [ Ignore ]   [ # 318 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  277
Joined  02-07-2007

@mooton: what kind of system are you running? PHP5 - PHP4? What is your webserver?

—Iksander

Profile
 
 
Posted: 14 March 2007 12:56 PM   [ Ignore ]   [ # 319 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

@mooton

Did you add any custom controller or generally speaking class called “freakauth_light“?

 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: 14 March 2007 02:50 PM   [ Ignore ]   [ # 320 ]  
Summer Student
Avatar
Total Posts:  21
Joined  12-01-2006

Hmm no, I only renamed config_demo autoload_… route_… in config autoload and route , setting my website adress in config file and try ....index.php/installer :(

Profile
 
 
Posted: 14 March 2007 05:48 PM   [ Ignore ]   [ # 321 ]  
Grad Student
Rank
Total Posts:  35
Joined  02-25-2007

trying my first step into the freakauth - one block I’m coming up against.  when I log is as the superuser and try to add a user or admin, I get an error on line 1196 ( there was another similar error on about 525 but I don’t remember what triggered it.)

The error is
Fatal error: Call to a member function on a non-object in C:\ci-test\system\application\libraries\Freakauth_light.php on line 1196

which is:

$this->CI->load->model('Userprofile', 'userprofile');

//array of fields
$db_fields=$this->CI->userprofile->getTableFields();  // <--1196


any suggestions?

Yehosef

Profile
 
 
Posted: 14 March 2007 05:52 PM   [ Ignore ]   [ # 322 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

@yehosef

I guess you are running PHP4. If Yesyou have 2 solutions to sort out your problem:

a) turn custom user_profile OFF in the application/config/freakauth_light.php

b) have a look to what the gang suggested in this forum @page 18

I hope this helps!

@MOoton
I don’t really know what to tell you! Try again… and reinstall everything.

 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: 15 March 2007 05:11 AM   [ Ignore ]   [ # 323 ]  
Grad Student
Rank
Total Posts:  35
Joined  02-25-2007

Thanks for the help - now its going..

Profile
 
 
Posted: 17 March 2007 03:14 PM   [ Ignore ]   [ # 324 ]  
Summer Student
Total Posts:  19
Joined  11-07-2006

I just tried Freakauth and it works pretty well except I have a couple of issues:

1. Is there a way to disable the ‘activation’ email? I want users to be automatically permanently activated as soon as they register - my users won’t want a multi-step process.

2. It would be nice if the login success redirect when to the URL that the user was originally trying to reach when the login page came up.

Ben

Profile
 
 
Posted: 17 March 2007 03:44 PM   [ Ignore ]   [ # 325 ]  
Summer Student
Total Posts:  19
Joined  11-07-2006

The auth controller is missing the login() method which causes this redirect not to work:

function register()
    
{    
        
//if users are not allowed to register
        
if (!$this->config->item('FAL_allow_user_registration'))
        
{
            redirect
('auth/login', 'location');
        
}

Easy enough to add:

function login()
  
{
      $this
->_login();
  
}

Profile
 
 
Posted: 17 March 2007 04:43 PM   [ Ignore ]   [ # 326 ]  
Summer Student
Total Posts:  19
Joined  11-07-2006

I have to agree with the other users regarding the annoying template system in Freakauth. Why does it not just use the standard, simple CodeIgniter views?  This template system makes it impossible to just drop into an existing project and annoying to use for new projects. I don’t want to have to modify the Freakauth code because then what do I do when a new version comes out?  How do I get bug fixes without manually modifying the code each time?

If you want common elements for your test app, it’s easy enough to include common files from each template but forcing this container/content paradigm is just plain wrong. Is this a CodeIgniter module or a FreakFramework module?

So sad that there are still no good auth solutions for CodeIgniter…  Has anyone reviewed the code in FreakAuth?  Is it worth branching it now to use a standard view system?

Profile
 
 
Posted: 18 March 2007 04:23 PM   [ Ignore ]   [ # 327 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  173
Joined  02-25-2007

Has anyone created profiles that can be viewed by users using FreakAuth. I’m having some trouble with this as of now.

Have you had any progress Dan?

Profile
 
 
Posted: 18 March 2007 04:30 PM   [ Ignore ]   [ # 328 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

@codelearn

Yes I did, but still busy finishing my project. I’ll post you the solution asap. In the meanwhile have a look at the controller admin/users.php

@benlm
that templating way was suggested by the CI creator Rick Ellis. It’s easy to customise it. the auth controller is a demo controller and you are free to change it to suit your own needs.
Me and Iksander are currently working on next release of FreakAuth_light, that will, among the other things, be more “pluggable” and make it easier to be used in your custom view temlate/system.

 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: 19 March 2007 09:28 PM   [ Ignore ]   [ # 329 ]  
Summer Student
Total Posts:  19
Joined  11-07-2006

the auth controller is a demo controller and you are free to change it to suit your own needs.

Oh… I think it would be useful to break apart the “FreakAuth_light” core from the demo stuff.

Currently, it seems that the config/freakauth_light.php file is partly core config stuff and partly demo stuff. I just want to make sure that when I get a new version of the FreakAuth_light core, I can drop the files into my website project and have everything continue to work without me having to manually edit FreakAuth code.


The 2 features on my wishlist for FreakAuth are:

1. Option to allow register without activation email.
2. Redirect to originally requested page after login success.

Profile
 
 
Posted: 21 March 2007 03:15 AM   [ Ignore ]   [ # 330 ]  
Grad Student
Avatar
Rank
Total Posts:  94
Joined  03-05-2006
benlm - 19 March 2007 09:28 PM

1. Option to allow register without activation email.

Can’t help with number 2 right now, but…

Create a config item called something like FAL_activation_email_onoff, and set it to false.

Then in Freakauth_light.php (the library), at about line 474, replace the code that’s there (can’t remember what it is now, but you’ll work it out) with:

if($this->CI->config->item('FAL_activation_email_onoff')) {
  $this
->_sendActivationEmail($user_id, $username, $password_email, $email, $activation_code);
     
} else {
  $this
->activation($user_id, $activation_code);
  
$this->login();
}

Profile
 
 
   
22 of 36
22
 
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: 64425 Total Logged-in Users: 32
Total Topics: 80854 Total Anonymous Users: 1
Total Replies: 435207 Total Guests: 212
Total Posts: 516061    
Members ( View Memberlist )