@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
😉