diff --git a/actions/recoverpassword.php b/actions/recoverpassword.php
index 1f2cff1975..c9813bcd08 100644
--- a/actions/recoverpassword.php
+++ b/actions/recoverpassword.php
@@ -50,7 +50,7 @@ class RecoverpasswordAction extends Action {
 	function check_code() {
 
 		$code = $this->trimmed('code');
-		$confirm = Confirm_address::staticGet($code);
+		$confirm = Confirm_address::staticGet('code', $code);
 
 		if (!$confirm) {
 			$this->client_error(_('No such recovery code.'));