plugins/admin/UserManager.php
changeset 591 2529833a7731
parent 573 43e7254afdb4
child 621 68f8a9cc0a18
equal deleted inserted replaced
590:03a60844c7c5 591:2529833a7731
   145         if ( $user_id != $session->user_id )
   145         if ( $user_id != $session->user_id )
   146         {
   146         {
   147           $to_update_users['username'] = $username;
   147           $to_update_users['username'] = $username;
   148           if ( $password )
   148           if ( $password )
   149           {
   149           {
   150             $password = $aes->encrypt($password, $session->private_key, ENC_HEX);
   150             $password = $session->pk_encrypt($password, ENC_HEX);
   151             $to_update_users['password'] = $password;
   151             $to_update_users['password'] = $password;
   152           }
   152           }
   153           $to_update_users['email'] = $email;
   153           $to_update_users['email'] = $email;
   154           $to_update_users['real_name'] = $real_name;
   154           $to_update_users['real_name'] = $real_name;
   155         }
   155         }