Hi,
Thanks, i take note of your comment. This github repo is not mine. Can you paste here your fix ? If your fix don’t break main plugin features, i will integrate in next release.
Best regards.
Thank you for the reply. I did not realize the github repo was not official.
Inside of classes/wp_cassify_plugin.php, line 366-ish.
if ( empty( $cas_user_datas['cas_user_id'] ) ) {
$this->wp_cassify_logout();
}
This simply logs the user out on bad ticket, maybe not the most elegant or permanent solution but saved us a lot of helpdesk calls.
I also added NCONTAINS in the rule resolver as we needed to identify users that were not students.
case '-NCONTAINS' :
if ( strpos( $wp_cassify_rule_solver_item->left_operand, $this->strip_double_quotes_from_operand( $wp_cassify_rule_solver_item->right_operand ) ) == FALSE ) {
$wp_cassify_rule_solver_item->result = 'TRUE';
}
else {
$wp_cassify_rule_solver_item->result = 'FALSE';
}
break;