You mean the captcha?
If you want to quit the security question and the captcha, try this: (my quotes are in Spanish,please translate)
(Warning: before to do this, please make a Backup. And be careful, when you make a Update, this modified code will be lost.)
VAMOS A BORRAR LA PREGUNTA DE SEGURIDAD Y EL CAPTCHA
RUTA: /main/controllers/account/Register.php
BORRAMOS LAS LINEAS 32 HASTA 43
$this->load->model('Security_questions_model'); // load the security questions model
$data['questions'] = array();
$results = $this->Security_questions_model->getQuestions(); // retrieve array of security questions from getQuestions method in Security questions model
foreach ($results as $result) { // loop through security questions array
$data['questions'][] = array( // create an array of security questions to pass to view
'id' => $result['question_id'],
'text' => $result['text']
);
}
$data['captcha'] = $this->createCaptcha();
BORRAMOS 61 Y 62
$add['security_question_id'] = $this->input->post('security_question');
$add['security_answer'] = $this->input->post('security_answer');
Y LAS LÍNEAS 94, 95 y 97
$this->form_validation->set_rules('security_question', 'lang:label_s_question', 'xss_clean|trim|required|integer');
$this->form_validation->set_rules('security_answer', 'lang:label_s_answer', 'xss_clean|trim|required|min_length[2]');
$this->form_validation->set_rules('captcha', 'lang:label_captcha', 'xss_clean|trim|required|callback__validate_captcha');
AHORA VAMOS A LAS VIEWS
1.- /main/views/themes/tastyigniter-orange/account/login.php
BORRAMOS LAS LÍNEAS 41 HASTA 47
<div class="form-group">
<div class="input-group">
<input type="password" name="password" id="login-password" class="form-control input-lg" placeholder="<?php echo lang('label_password'); ?>" />
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
</div>
<?php echo form_error('password', '<span class="text-danger">', '</span>'); ?>
</div>
2.- main/views/themes/tastyigniter-orange/account/register.php
BORRAMOS LAS LÍNEAS 62 HASTA 72
<div class="form-group">
<select name="security_question" id="security-question" class="form-control input-lg" placeholder="<?php echo lang('label_s_question'); ?>">
<?php foreach ($questions as $question) { ?>
<option value="<?php echo $question['id']; ?>"><?php echo $question['text']; ?></option>
<?php } ?>
</select>
<?php echo form_error('security_question', '<span class="text-danger">', '</span>'); ?>
</div>
<div class="form-group">
<input type="text" id="security-answer" class="form-control input-lg" name="security_answer" value="<?php echo set_value('security_answer'); ?>" placeholder="<?php echo lang('label_s_answer'); ?>">
<?php echo form_error('security_answer', '<span class="text-danger">', '</span>'); ?>
</div>
AHORA VAMOS A BORRAR EL CAPTCHA
BORRAMOS LAS LÍNEAS 100 HASTA EL FINAL (OJO, QUEDA EN EL CÓDIGO EL ÚLTIMO CORCHETE)
public function _validate_captcha($word) {
$session_caption = $this->session->tempdata('captcha');
if (strtolower($word) !== strtolower($session_caption['word'])) {
$this->form_validation->set_message('_validate_captcha', $this->lang->line('error_captcha'));
return FALSE;
} else {
return TRUE;
}
}
private function createCaptcha() {
$this->load->helper('captcha');
$captcha = create_captcha();
$this->session->set_tempdata('captcha', array('word' => $captcha['word'], 'image' => $captcha['time'].'.jpg'), '120'); //set data to session for compare
return $captcha;
}
Y MODIFICAMOS EL VIEW
BORRAMOS LÍNEA 62 HASTA 69
<div class="form-group">
<div class="input-group">
<span><?php echo $captcha['image']; ?></span>
<input type="hidden" name="captcha_word" class="form-control" value="<?php echo $captcha['word']; ?>" />
<input type="text" name="captcha" class="form-control" placeholder="<?php echo lang('label_captcha'); ?>" />
</div>
<?php echo form_error('captcha', '<span class="text-danger">', '</span>'); ?>
</div>