[eluser]jdutoit[/eluser]
Hi Guys,
I'm getting this error.
Missing argument 2 for Quickauth::login(), called in /Applications/XAMPP/xamppfiles/htdocs/seat/system/application/controllers/user.php on line 39 and defined
Filename: libraries/Quickauth.php
My controller:
function authlogin()
{ //Validate login fields
$this->form_validation->set_rules('myusername', 'Username', 'required|alpha_numeric|min_length[4]|max_length[15]|xss_clean');
$this->form_validation->set_rules('mypassword', 'Password', 'required|alpha_numeric|min_length[6]|max_length[40]|xss_clean');
if ($this->form_validation->run() == FALSE)
{
$data['title'] = "Login - Try again";
$this->load->view('login', $data);
}
else
{
$username = $_POST['myusername'];
$password = $_POST['mypassword'];
$this->quickauth->login('$username, $password, $redirect = NULL');
}
}
My Library: (specifying the redirect location)
function login( $username, $password, $redirect = 'user/welcome')
I'm probably making a silly error somewhere,
Help would be greatly appreciated...
Jean