PageRenderTime 45ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/application/modules_core/client_center/models/mdl_client_sessions.php

https://bitbucket.org/hlevine/myclientbase-south-african-version
PHP | 21 lines | 11 code | 10 blank | 0 comment | 0 complexity | 041d14bec391f278fbe09397f6e76186 MD5 | raw file
Possible License(s): GPL-3.0, LGPL-2.1, GPL-2.0
  1. <?php (defined('BASEPATH')) OR exit('No direct script access allowed');
  2. class Mdl_Client_Sessions extends MY_Model {
  3. function validate() {
  4. $this->load->library('form_validation');
  5. $this->form_validation->set_error_delimiters('<div class="error">', '</div>');
  6. $this->form_validation->set_rules('username', $this->lang->line('username'), 'required');
  7. $this->form_validation->set_rules('password', $this->lang->line('password'), 'required|md5');
  8. return parent::validate();
  9. }
  10. }
  11. ?>