Part of the EllisLab Network
   
15 of 51
15
FreakAuth light 1.1 released
Posted: 14 October 2007 07:36 AM   [ Ignore ]   [ # 141 ]  
Summer Student
Total Posts:  3
Joined  10-14-2007

[CI] +FreakAuth on Progreso.pl server (login error in IE)

I have a small problem with CODE IGNITER + FreakAuth 1.1 module, it is working propertly at temporary server (for tests windows & linux).
Problem starts when I run it on Progreso.pl Sever. Now programme let me log in to Firefox only but not on IE. It is working propertly on others IE servers- its working on Firefox -ok!.

Problem starts when I run it on Progreso.pl server IE is not working, but it works at other servers.

When you type your login and password it should send you to control panel but the problem is that it is doing nothing (it shows the same login panel) when you try login by Mozilla it works ok! after password it send you to control panel like it should.

Profile
 
 
Posted: 14 October 2007 01:04 PM   [ Ignore ]   [ # 142 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  366
Joined  04-27-2006

does anybody have an idea how to use freakauth for a paid membership site??? (with paypal)
I would set the user after payment to a specific userlevel,
feed the session variables with an end of membership timestamp
and check this in my controllers/hook or autoload library
if the timestamp has expired then I would redirect to freakauth / payment controller

do you have a better idea?
has someone realized something similar?

Profile
 
 
Posted: 15 October 2007 08:40 AM   [ Ignore ]   [ # 143 ]  
Grad Student
Rank
Total Posts:  74
Joined  05-19-2007

Great addition to CI! Thanks a million for the hard work.

Was wondering… How might I go about remembering the URL the visitor came from when they click “log in” so that I can send them back to that page once logged in instead of the page I set in config?

Let me know if I’m being unclear.

Thanks.

Profile
 
 
Posted: 15 October 2007 10:27 AM   [ Ignore ]   [ # 144 ]  
Summer Student
Total Posts:  13
Joined  09-09-2007

Hi,
I added two fields to extend user profile. I modified file freakauth_light.php in this way:

$config['FAL_user_profile_fields_names'] =
    array(
'ownname' => 'ownname',
          
'birthday' => 'birthday',
    );

and added custom rules

$config['FAL_user_profile_fields_validation_rules'] =
    array(
'ownname' => 'trim|required|max_length[40]',
          
'birthday' => 'trim|required|exact_length[8]|numeric',
    );

and register form view looks like

<?=(isset($this->fal_validation) ? $this->fal_validation->{'birthday'.'_error'} : '')?>

but I get error that error messages aren´t set. How can I set validation rules for this and add error messages?

Thanks for any suggestions

Profile
 
 
Posted: 17 October 2007 12:51 AM   [ Ignore ]   [ # 145 ]  
Lab Assistant
RankRank
Total Posts:  230
Joined  03-21-2007

Just curious if anyone has had any problems with the activation email.

I tested the entire system thouroughly and it worked for me, but I’m having some complaints from those trying to sign up that they don’t get an email, and I even suggest they check their junk folder. I turned it off, then got too many fake sign ups so turned it back on. I just got an email from someone with a hotmail account saying they never got an activation email so I turned it off once again.

I’m of course not asking anyone to fix this, I realize its a free contribution that I appreciate I was given to use.


Just wondering if anyone has had the same issue.


Cheers to the Freak Auth Team!

Profile
 
 
Posted: 17 October 2007 03:28 AM   [ Ignore ]   [ # 146 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007

@basu
No idea, do you have a link for us, and a test account?

@gunter
Why not working with roles? You could create specific roles for the different payment states.
I guess you use the PayPal lib. I don’t know it but after loading the FAL lib, you can use the function $lib->updateUser($where, $data) to change the role of any user in the db. So it would solve your problem for checking people: now you can use the usual FAL checking functions with roles.
Just one thing, the session won’t be updated, you’ll have to use some kind of
$ci->db_session->set_userdata($userdata);.

@BrandonDurham
This is quite interesting, since we didn’t think about that until now. I guess you have a login form on every page, and you want to take the user back to the page where he logged in from.
I have no time to test it, but I’d try to put the referer in the config item:

$config['FAL_login_success_action'] = isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:'';

@Lobosaurus
sorry, I didn’t investigate myself custom profiles, Dan will have answers maybe…
Did you read this tuto and this one?

@megabyte
it happened once to me, but I’m still not sure whether it’s an error from my site or from the guy…

Profile
 
 
Posted: 18 October 2007 03:39 PM   [ Ignore ]   [ # 147 ]  
Summer Student
Total Posts:  22
Joined  10-04-2007

Sweet little addon, I like it. I do have a few little problems with it however:

1) tiny bug in SQL database - user CREATION is set to auto timestamp on update, rather than the MODIFIED field.

2) You dont leave things very open for people who want to have a different database strucure. I wanted to have user_username as my username field, but you have hard coded in to many pages ‘user_name’ as the field. For a future release you may wish to extract all of these field names to the CONFIG[] area, like you have done so well with all other variables.

Profile
 
 
Posted: 18 October 2007 10:13 PM   [ Ignore ]   [ # 148 ]  
Grad Student
Avatar
Rank
Total Posts:  50
Joined  09-10-2007
megabyte - 17 October 2007 12:51 AM

Just curious if anyone has had any problems with the activation email.
...
I just got an email from someone with a hotmail account saying they never got an activation email so I turned it off once again.
...
Just wondering if anyone has had the same issue.

Yes, i have recently had the same issue, Hotmail seems to be veeerry picking about the emails that it accepts… as mentioned, sometimes it wont even make their junk folder, Hotmail just rejects it completely (and silently?)...

To fix it, I overrode the _sendEmail() function (in my application/libraries/MyFAL.php) to use the PHP mailer class instead of the CI mailer class..

function _sendEmail($email, $subject, $message)
    
{

/* this is the original code
        $tobj =& get_instance();
        $tobj->load->library('email');
        $tobj->email->clear();
        $tobj->email->from($this->CI->config->item('FAL_user_support'), $this->CI->config->item('FAL_website_name').' '.$this->CI->config->item('FAL_email_from'));
        $tobj->email->to($email);
        $tobj->email->subject($subject);
        $tobj->email->message($message);
        $tobj->email->send();
*/

/* this is the new code */
        
$from = $this->CI->config->item('FAL_website_name').' '.$this->CI->config->item('FAL_email_from').' <'.$this->CI->config->item('FAL_user_support').'>';
        
$headers = 'From: ' . $from . "\r\n" .
        
'Reply-To: ' . $from . "\r\n" .
        
'X-Mailer: PHP/' . phpversion();
        if ( !
mail($email, $subject, $message, $headers) )
        die(
'It didnt go through!');
    
}

(slightly modified for this post, please test before using!)

I think it has something to do with the headers that get sent with the email, as they are slightly different between the CI and PHP mailer class… I guess if you figured out the specific issue, you could override the CI mailer class… but this quick fixed worked for me…

Also, while this worked for me to actually get the emails through to Hotmail accounts, I can’t guarantee that they won’t still land in the Junk folder… there is a LOT of variables in play with email servers and spam filters these days, enough to send you mad… =]

Cheers,

Michael

 Signature 

@michaelropernotmuch.tumblr.com

Profile
 
 
Posted: 19 October 2007 01:15 AM   [ Ignore ]   [ # 149 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007

@junkmate
1) Added to the bug tracker, thanks
2) you’re so right! we don’t have much time at the moment for this but if you tweak FAL this way, please send us the patches. This will go in 1.2.

@michael.roper
Thanks for the tip, I added it to the FAQ on ciforge.

Profile
 
 
Posted: 19 October 2007 01:22 AM   [ Ignore ]   [ # 150 ]  
Summer Student
Total Posts:  22
Joined  10-04-2007

ill grab a fresh copy of 1.1 and update it. Glad to help!

Profile
 
 
   
15 of 51
15
 
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: 120243 Total Logged-in Users: 60
Total Topics: 126377 Total Anonymous Users: 3
Total Replies: 664630 Total Guests: 442
Total Posts: 791007    
Members ( View Memberlist )