Browse Source

Merge pull request #110 from REJack/master

lil enhancements
develop
Emre Akay 9 years ago
parent
commit
1e9b01b85e
  1. 2
      application/helpers/recaptchalib_helper.php
  2. 11
      application/libraries/Aauth.php

2
application/helpers/recaptchalib_helper.php

@ -52,7 +52,7 @@ class ReCaptcha
*
* @param string $secret shared secret between site and ReCAPTCHA server.
*/
function ReCaptcha($secret)
public function __construct($secret)
{
if ($secret == null || $secret == "") {
die("To use reCAPTCHA you must get an API key from <a href='"

11
application/libraries/Aauth.php

@ -783,6 +783,11 @@ class Aauth {
$data = array();
$valid = TRUE;
$user = $this->get_user($user_id);
if ($user->email == $email) {
$email = FALSE;
}
if ($email != FALSE) {
if ($this->user_exist_by_email($email)) {
@ -805,6 +810,10 @@ class Aauth {
$data['pass'] = $this->hash_password($pass, $user_id);
}
if ($user->name == $name) {
$name = FALSE;
}
if ($name != FALSE) {
if ($this->user_exist_by_name($name)) {
$this->error($this->CI->lang->line('aauth_error_update_username_exists'));
@ -817,7 +826,7 @@ class Aauth {
$data['name'] = $name;
}
if (!$valid) {
if ( !$valid || empty($data)) {
return FALSE;
}

Loading…
Cancel
Save