Part of the EllisLab Network
   
5 of 53
5
FreakAuth light 1.1 released
Posted: 01 August 2007 10:26 AM   [ Ignore ]   [ # 41 ]  
Research Assistant
RankRankRank
Total Posts:  429
Joined  05-21-2007

Hi again guys,

Last week i got some kind of revelation and everythings start to be clear, maybe just a question of experience and time smile

Now i understand pretty much what is going on and HOW use FAL no matter if i’m a newbie or not wink

Two little question :

1.

I read the tutorial about profile, how do i deal with something like i have a field in the profile database, like SECRET_INTERN_SERIAL_NO, so the user will never see this field, but i have to rely this on the user profile.

So on the registration and edit profile or account i didn’t need to show it to the basic user, is there a way to put this field hidden ? to prevent being edited on some transaction ? What you guy do to achieve this ?

2.

Security : What is the overall process to prevent session hi-jacking, could you make me a little history about what FAL do for us about security. I’ll be happy to learn from this.

Many thanks.

 Signature 

-> None official irc channel [ irc.freenode.net #codeigniter ]

Profile
 
 
Posted: 01 August 2007 11:34 AM   [ Ignore ]   [ # 42 ]  
Summer Student
Total Posts:  2
Joined  07-15-2007
danfreak - 28 July 2007 08:46 AM

@pb30
yes it is possible to use the captcha in other stuff.

check out how we used it in FAL_front.php

$fields['security'$this->CI->lang->line('FAL_captcha_label');
$rules['security'$this->CI->config->item('FAL_user_captcha_field_validation');

......

$action='_login';
$this->CI->freakauth_light->captcha_init($action);
$data['captcha'$this->CI->config->item('FAL_captcha_image'); 


in your view

<p><label for="security"><?=$this->lang->line('FAL_captcha_label')?>:</label>
    
<?=form_input(array('name'=>'security'
                           
'id'=>'security',
                           
'maxlength'=>'45'
                           
'size'=>'45',
                           
'value'=>''))?>
    <?
=(isset($this->fal_validation) ? $this->fal_validation->{'security'.'_error''')?>
    <?
=$this->load->view($this->config->item('FAL_captcha_img_tag_view'), nulltrue)?></p

the captcha template is in views/FreakAuth_light/content/forms/html_for_captcha.php

I’ve managed to get the captcha to display but I cant figure out the validation. Any ideas?

Profile
 
 
Posted: 03 August 2007 09:01 AM   [ Ignore ]   [ # 43 ]  
Grad Student
Rank
Total Posts:  64
Joined  04-04-2007

I want to have a login nugget on every page but in the controller I need to do something like this,

function register()
    
{           
    
...
    
$data['fal'$this->fal_front->register();
    ...       
    

so how can I ‘enable’ the login nugget by also setting,

$data['fal'$this->fal_front->login(); 
 Signature 

easy2web

Profile
 
 
Posted: 04 August 2007 06:39 AM   [ Ignore ]   [ # 44 ]  
Summer Student
Total Posts:  7
Joined  08-04-2007

Hi guys, great work on FreakAuth, it is just what I was looking for.

I have a small issue which is probably something that I have overlooked but havent had any success after a few hours…

After setting up FreakAuth using the installation instructions, Iam not able to view any other page except ‘home’ and ‘examples’. If I click on ‘login’, ‘register’, etc, the page will behave as if it is loading but it will just appear blank, nothing comes up.

Your help is greatly appreciated.

—MK

EDIT:
——-
I have narrowed down the problem after many hours LOL
the problem is that the server doesn’t like the use of CAPTCHA’s…

I was initially testing FreakAuth on a UNIX based setup of PHP/Apache and had the blank page problem as above, then tried it on a WAMP setup and it worked perfectly, so I compared the phpinfo() of both servers and the WAMP server had more GD stuff such as freetype etc (I was lead to find this from the image_lib problem that was mentioned in the other thread).

I turned off CAPTCHA’s using the config file (freakauth_lite.php) and the pages now load on the UNIX server. I did try re-configuring and installing php using—with-ttf in the ./configure line but still blank pages appear when Im trying to use CAPTCHAs.

What can I do?

Profile
 
 
Posted: 06 August 2007 05:39 PM   [ Ignore ]   [ # 45 ]  
Grad Student
Rank
Total Posts:  69
Joined  08-22-2006

I want it so that, when a user logs out, they get redirected to the login page once more. So, for example:

* User tried to access www.mysite.com/admin
* Gets redirected to www.mysite.com/auth/login
* Logs in, makes changes, wants to log out
* Clicks on “log out”, which links to www.mysite.com/auth/logout
* User is logged out, and redirected to www.mysite.com/auth/login in case they want to log in again

I’m maybe doing something wrong, but at the minute, when the user logs out, it redirects to www.mysite.com . I’ve set the freakauth_light.php config file as follows:

// The action to execute after successful ADMIN logout
$config['FAL_admin_logout_success_action''admin'

but the same happens. Anyone any ideas?

Profile
 
 
Posted: 06 August 2007 07:03 PM   [ Ignore ]   [ # 46 ]  
Lab Assistant
RankRank
Total Posts:  255
Joined  08-05-2007

Hello,

I really like the way you’ve automated extra profile fields. I have a suggestion/question. How come you made a separate table just for the extra fields? Why not just tell the user to create the extra fields on the user_profile and user_temp tables?

Also, I’ve added a required field to the registration form but get two errors:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: psn

Filename: forms/register.php

Line Number: 47

The same for line 48. I’ve added entries to the language file, controllers/admin/users.php, and views\FreakAuth_light\content\forms\register.php files but where as do I need to edit?

 Signature 

CI Base - CodeIgniter Repository

Profile
 
 
Posted: 07 August 2007 02:36 PM   [ Ignore ]   [ # 47 ]  
Summer Student
Total Posts:  12
Joined  08-06-2007

Hi there,

trying to get it to work. I’ve installed everything. Everything runs fine, other than the admin section.

When i hit the admin section to go there i just a 404 error…....Any ideas? index.php/admin.html index.php/admin both don’t work all other pages do.

****************
Fixed it i already had a file name like one of the files from freak auth smile
****************

Profile
 
 
Posted: 07 August 2007 08:53 PM   [ Ignore ]   [ # 48 ]  
Lab Assistant
RankRank
Total Posts:  255
Joined  08-05-2007

Hi,

If auto login is a feature of FreakAuth, how does it store the user’s details in cookies? If this isn’t a feature do you have any plans to add this “Remember me” button?

Thanks.

 Signature 

CI Base - CodeIgniter Repository

Profile
 
 
Posted: 08 August 2007 01:02 PM   [ Ignore ]   [ # 49 ]  
Summer Student
Total Posts:  12
Joined  08-06-2007

Hey there,

+1 for freakauth.

One quick question though…..is it possible to change the user name into being their email address instead of them creating a user name?

Many thanks

Profile
 
 
Posted: 10 August 2007 06:19 PM   [ Ignore ]   [ # 50 ]  
Summer Student
Total Posts:  10
Joined  06-28-2007

Any news when the documentation on custom profile fields will be finished?

I have followed it so far and they show up in the backend user section but not on the registration form.

I am looking to be able to have the user enter the required fields when they create their account.

Thank you.

Profile
 
 
   
5 of 53
5