Index: aes.module
===================================================================
--- aes.module	(revision 948)
+++ aes.module	(working copy)
@@ -375,9 +375,8 @@
  
  if ($op == "update" || $op == "insert") {
   if (!empty($edit['pass']) && $account->uid) {
+   $password = aes_encrypt($_POST['pass']);
    
-   $password = aes_encrypt($edit['pass']);
-   
    if (strlen($password) > AES_PASSWORD_MAX_LENGTH) {
     $edit['pass'] = null;
     drupal_set_message(t("Couldn't update AES password since it's too long.", "error"));
