Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Load secret question
- $query = 'SELECT `email`, `_account_recovery` FROM `pcms_accounts` WHERE `username`=?';
- $info = $this->DB->query( $query, array($username))->fetch_row();
- if(!$info)
- {
- output_message('error', 'username_doesnt_exist');
- goto Form;
- }
- // Make sure the emails match!
- if($info['email'] != $email)
- {
- log_message( serialize($info) );
- log_message('Input: '.$email .' Actual: '.$info['email']);
- output_message('error', 'account_recover_invalid_email');
- goto Form;
- }
Add Comment
Please, Sign In to add comment