diff --git a/rpt.module b/rpt.module
index 9d88941..3a801b3 100644
--- a/rpt.module
+++ b/rpt.module
@@ -51,11 +51,16 @@ function rpt_token_info() {
  */
 function rpt_tokens($type, $tokens, array $data = array(), array $options = array()) {
   $replacements = array();
-  if (isset($data['user']) && isset($data['user']->password)) {
-    $replacements['[user:password]'] = $data['user']->password;
-  }
-  elseif (isset($data['user']) && !isset($data['user']->password)) {
-    $replacements['[user:password]'] = t('Your password');
+  foreach ($tokens as $name => $value) {
+    if ($name == 'password') {
+      if (isset($data['user']) && isset($data['user']->password)) {
+        $replacements['[user:password]'] = $data['user']->password;
+      }
+      elseif (isset($data['user']) && !isset($data['user']->password)) {
+        $replacements['[user:password]'] = t('Your password');
+      }
+    }
   }
+
   return $replacements;
 }
