type -> address_type
darcs-hash:20080624221437-34904-746bd79dbef949c16095b9b44a9a721288abb989.gz
This commit is contained in:
		@@ -46,7 +46,7 @@ class RecoverpasswordAction extends Action {
 | 
				
			|||||||
	function check_code() {
 | 
						function check_code() {
 | 
				
			||||||
		$code = $this->trimmed('code');
 | 
							$code = $this->trimmed('code');
 | 
				
			||||||
		$confirm = Confirm_address::staticGet($code);
 | 
							$confirm = Confirm_address::staticGet($code);
 | 
				
			||||||
		if ($confirm && $confirm->type == 'recover') {
 | 
							if ($confirm && $confirm->address_type == 'recover') {
 | 
				
			||||||
			$user = User::staticGet($confirm->user_id);
 | 
								$user = User::staticGet($confirm->user_id);
 | 
				
			||||||
			if ($user) {
 | 
								if ($user) {
 | 
				
			||||||
				$result = $confirm->delete();
 | 
									$result = $confirm->delete();
 | 
				
			||||||
@@ -158,7 +158,7 @@ class RecoverpasswordAction extends Action {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		$confirm = new Confirm_address();
 | 
							$confirm = new Confirm_address();
 | 
				
			||||||
		$confirm->code = common_confirmation_code(128);
 | 
							$confirm->code = common_confirmation_code(128);
 | 
				
			||||||
		$confirm->type = 'recover';
 | 
							$confirm->address_type = 'recover';
 | 
				
			||||||
		$confirm->user_id = $user->id;
 | 
							$confirm->user_id = $user->id;
 | 
				
			||||||
		$confirm->address = $user->email;
 | 
							$confirm->address = $user->email;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user