ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

FreakAuth light 1.1 released

July 17, 2007 1:14pm

Subscribe [65]
  • #16 / Jul 23, 2007 3:15pm

    Grahack

    266 posts

    What about postgres users? Will you create .sql for postgres?

    I think that we won’t, but it shouldn’t be difficult if you mimic ours. We’ve been already asked for this and we already asked for this script in previous threads, without success. If you manage to code one, please send it to us. Thanks.

  • #17 / Jul 23, 2007 3:25pm

    danfreak

    99 posts

    is there a way getting only the FreakAuth api?

    i really like FreakAuth but i awnt to integrate it in my existing site without having the work hours to strip all the default FreakAuth template / js scripts / css / images / etc…

    I think esra gave the most approproate answer: I just add, play around with FAL 30 min, select the files you like, and then grab them to fulfill your needs.
    You will nee 30 min, the freak team has coded tons of hours!

    😉

  • #18 / Jul 23, 2007 4:28pm

    TermiT

    5 posts

    I used this script to convert mysql dump to posgres, I typed some thing like this:

    mysql2postgres.perl --nodrop FreakAuth_DB.sql FreakAuth_DB_postgres.sql

    It’s work perfectly and I get this postgres sql
    But then I found one problem, when something exec insert sql query (in freak auth model) field id always been empty.(For Mysql it’s no problem, but for postgres…) To avoid this just uset id fields in $data when freakauth’s model insert something, and everything will be ok. 😊))
    Thanks guys for really good auth plugin.

  • #19 / Jul 23, 2007 4:34pm

    danfreak

    99 posts

    Great TermiT!

    Cheers! sorry if we couldn’t help but we are not postgres gurus 😉

    I’ll add your sql file in the download and your note in the docs asap!

    Dan

  • #20 / Jul 24, 2007 1:28pm

    pb30

    2 posts

    Is it possible to use the captcha on another part of the site?

  • #21 / Jul 25, 2007 6:38pm

    jstrebel

    19 posts

    Any chance you can update the user profile tutorial to reflect the changes in 1.1?

    Nice work btw

  • #22 / Jul 26, 2007 3:57pm

    sikkle

    325 posts

    Re-Hi guys,

    maybe this question can seem weird, but i’ll ask 😊

    I love the CI philosophy it’s barely the ‘KISS’ one.

    I’m learning a lot with your script, not like i’ll stole it from you but better it’s a damn good tutorial.

    you choose to use db_session if i’m right, you choose to load it in the constructor. From the developper view, what make you choose to load it from the constructor and not from the autoload ?

    I’ll love to get a reason, maybe i’m just trying to much to keep each library separate from library.

    thanks !

  • #23 / Jul 26, 2007 4:04pm

    jstrebel

    19 posts

    Hwo would one go about modifying Freak Auth 1.1 to allow login via username OR email, with one field.. so the login box would check input against the username field and the email field for a match.. ?

  • #24 / Jul 26, 2007 4:15pm

    sikkle

    325 posts

    I forget to talk about this in the last post, but this is a suggestion tho.

    Why not just include a simple switch language process and db_session (userdata) to select language right at login or switch later.

    many thanks.

  • #25 / Jul 28, 2007 5:02am

    Jamongkad

    67 posts

    Hey guys thanks again for the awesome Auth library…anyways I just migrated my application from UserLib auth to FreakAuth_lite_1.1, I did everything right down to the letter(I hope so) and everything checked out ok. Except for one little thing…

    The images, css, and JS won’t load when I type “installer” on my url.

    I made sure the public and tmp folders are in my apps directory so I guess that’s been taken care of.

    Freak Auth reports everything checks out ok From DB TABLES to Superadmin settings.

    But I can’t see any captcha images, images, css or js. I’ve checked and rechecked areas of my application and checked my base_url if it’s right and I still can’t see any of the above…any suggestions?

    P.S. I think tmp and public are writable cuz everytime I refresh the Freak Auth login page a new captcha image appears in the tmp folder…I just can’t see the darn thing hehe

  • #26 / Jul 28, 2007 5:46am

    danfreak

    99 posts

    @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

    <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'), null, true)?>

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

    Old captchas get deleted every time the freakauth_light->captcha_init() method is called

    Alternatively you can do a mini-library just for captchas.
    Also check ut this article: Not so useless! image_to_text() as a CAPTCHA


    @jstrebel
    About the custom userprofile tutorials: I’ll check it out their compatibility with FAL 1.1 asap.
    did you try to use them with 1.1?

    I’m planning to integrate them into next FAL release (not before September).

    For the login with e-mail or username my suggestion (somebody already asked me this but I don’t remember were my answer is…) is to check the username string, check if an “@” is in it, if there is a “@” tell the system to check against the e-mail field, otherway against the classic username field.
    I let you implement this using the new great extensibility feature of FAL 1.1

    😉

  • #27 / Jul 28, 2007 5:55am

    danfreak

    99 posts

    @sikkle

    you choose to use db_session if i’m right, you choose to load it in the constructor. From the developper view, what make you choose to load it from the constructor and not from the autoload ?

    This choice has been done in order to make sure that in case somebody forgets, or changes the autoload in a second time, we always have db_session and FAL loaded together. Otherways FAL wouldn’t work.
    It is not a mistake to autoload db_session in the autoload.

    Why not just include a simple switch language process and db_session (userdata) to select language right at login or switch later.

    Well this would be an extra feature that end users can implement.
    You can use the db_session library to store whatever you like and need.
    We didn’t implement multilanguage functionality for the following reasons:

    - not everybody needs it and therefore it is an extra
    - there are various ways to implement a multilanguage website, and therefore we live total freedomo to the developers to embrace their preferred one

    @Jamongkad

    Weird! Did somebody else encountered the same problem? basically you don’t see images at all.
    Is your “base_url” right (including the end trailing slash?)

    $config['base_url']    = "http://www.YOURDOMAIN.com/";


    Have a nice weekend guys!

    😉

  • #28 / Jul 28, 2007 1:05pm

    Jamongkad

    67 posts

    @Jamongkad

    Weird! Did somebody else encountered the same problem? basically you don’t see images at all.
    Is your “base_url” right (including the end trailing slash?)

    $config['base_url']    = "http://www.YOURDOMAIN.com/";


    Have a nice weekend guys!

    😉[/quote]

    Thanks you have a great weekend too!

    $config['base_url']    = "http://127.0.0.1/yeventerbeta/";

    This is my base url yup it includes trailing slashes. I’m scratchin my head over this one…quite a perplexing problem. Would the problem lie in the fact that I had to play with my .htaccess file? I did that in the first place when I did this

    $config['index_page'] = "";

    But I think the problem lies much deeper than this.

  • #29 / Jul 29, 2007 10:38am

    See64

    11 posts

    I have short question about FreakAuth’s otutgoing mails. FreakAuth seems to automatically add “<” and “>” around the email address. This is ALSO done by CodeIgniter’s default email library. This gives me the following error:

    SMTP server response: 554 5.7.1 Sender address format `<<[email protected]>>’ not RFC-compliant

    And just I can’t find where FreakAuth is adding this! Can anybody help?

  • #30 / Jul 29, 2007 11:08am

    maesk

    83 posts

    Hi guys

    I think FreakAuth is an excellent addition to CodeIgniter and it saved me a lot of time. It’s really quite easy to install, use and adapt. What I didn’t achieve is to display the login form in my content div of one of my views. Is this possible? If I have a particular page that should be secured I want to show the login form on this page in the content div so that it shows the header, navigation and all. Now I just adapted the templates so that everything shows adapted to my design, except for the navigation. If it’s not possible, it’s not a big problem either. The backend of FreakAuth is also very useful and makes a good starting point for a cms backend.

    So thanks a lot for your work. I donated 10 Euro, it’s not much but better than nothing.

    Cheers
    maesk

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases