fix
This commit is contained in:
@@ -165,7 +165,7 @@ class Auth extends Start_Controller {
|
||||
$data["error_message"] = '';
|
||||
|
||||
if ($_POST) {
|
||||
$data['reset_key'] = trim($this->input->post('rlink'));
|
||||
$data['reset_key'] = trim($this->input->post('reset_key'));
|
||||
$data['reset_id'] = trim($this->input->post('reset_id'));
|
||||
$data['username'] = trim($this->input->post('username'));
|
||||
|
||||
@@ -176,14 +176,15 @@ class Auth extends Start_Controller {
|
||||
|
||||
if ( strlen($data['pass1']) >7 && $data['pass1'] == $data['pass2']){
|
||||
$allow_next = true;
|
||||
$data["new_pass"] = $data['pass1'];
|
||||
}
|
||||
else{
|
||||
$data["error_message"] = "Please enter a valis username to continue";
|
||||
$data["error_message"] = "Please enter a valid password to continue";
|
||||
}
|
||||
|
||||
|
||||
//print_r( $data );
|
||||
$data["mode"] = RESET_COMPLETE;
|
||||
if ($data['reset_key'] != '' && isset($out["reset_id"]) && isset($out["reset_id"]) > 0 && $allow_next == true) {
|
||||
if ($data['reset_key'] != '' && isset($data["reset_id"]) && isset($data["reset_id"]) > 0 && $allow_next == true) {
|
||||
$this->coregrade_webapi(COREGRADE_START_RESET_PASSWORD, $data, $out);
|
||||
|
||||
// print_r($out);
|
||||
|
||||
Reference in New Issue
Block a user