Skip to content

Commit

Permalink
Merge pull request #2 from emreakay/master
Browse files Browse the repository at this point in the history
update repo to latest
  • Loading branch information
David Meyer committed Dec 22, 2015
2 parents de99e51 + 8161fff commit 7cfe1cb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
1 change: 0 additions & 1 deletion application/helpers/recaptchalib_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ public function verifyResponse($remoteIp, $response)
$answers = json_decode($getResponse, true);
$recaptchaResponse = new ReCaptchaResponse();

print_r($answers);
if (trim($answers['success']) == true) {
$recaptchaResponse->success = true;
} else {
Expand Down
4 changes: 2 additions & 2 deletions application/language/english/aauth_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
$lang['aauth_error_password_invalid'] = 'Invalid password';
$lang['aauth_error_username_invalid'] = 'Invalid Username';
$lang['aauth_error_username_required'] = 'Username required';
$lang['aauth_error_totp_code_required'] = 'TOTP Code required';
$lang['aauth_error_totp_code_invalid'] = 'Invalid TOTP Code';
$lang['aauth_error_totp_code_required'] = 'Authentication Code required';
$lang['aauth_error_totp_code_invalid'] = 'Invalid Authentication Code';


// Account update errors
Expand Down
19 changes: 16 additions & 3 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @copyright 2014-2015 Emre Akay
*
* @version 2.4.5
* @version 2.4.6
*
* @license LGPL
* @license http://opensource.org/licenses/LGPL-3.0 Lesser GNU Public License
Expand Down Expand Up @@ -1555,6 +1555,10 @@ public function allow_user($user_id, $perm_par) {

$perm_id = $this->get_perm_id($perm_par);

if( ! $perm_id) {
return FALSE;
}

$query = $this->aauth_db->where('user_id',$user_id);
$query = $this->aauth_db->where('perm_id',$perm_id);
$query = $this->aauth_db->get($this->config_vars['perm_to_user']);
Expand Down Expand Up @@ -1601,8 +1605,17 @@ public function deny_user($user_id, $perm_par) {
public function allow_group($group_par, $perm_par) {

$perm_id = $this->get_perm_id($perm_par);

if( ! $perm_id) {
return FALSE;
}

$group_id = $this->get_group_id($group_par);

if( ! $group_id) {
return FALSE;
}

$query = $this->aauth_db->where('group_id',$group_id);
$query = $this->aauth_db->where('perm_id',$perm_id);
$query = $this->aauth_db->get($this->config_vars['perm_to_group']);
Expand Down Expand Up @@ -1908,7 +1921,7 @@ public function print_errors($divider = '<br />')
*/
public function clear_errors()
{
$this->errors = [];
$this->errors = array();
$this->CI->session->set_flashdata('errors', $this->errors);
}

Expand Down Expand Up @@ -1998,7 +2011,7 @@ public function print_infos($divider = '<br />')
*/
public function clear_infos()
{
$this->infos = [];
$this->infos = array();
$this->CI->session->set_flashdata('infos', $this->infos);
}

Expand Down

0 comments on commit 7cfe1cb

Please sign in to comment.