/** * * @param WOOOF $wo * @param array $in * @return boolean */ public static function tokenResend(WOOOF $wo, $in) { $place = __CLASS__ . '::' . __FUNCTION__; $wo->debug("{$place}: ReseendVerificationToken"); $movieramaUserRec = $wo->db->getRowByColumn('movierama_users', 'username', $in['email']); if ($movieramaUserRec === FALSE) { return false; } if ($movieramaUserRec === NULL) { $wo->logError(self::_ECP . "2370 No such user found."); return false; } if ($wo->hasContent($movieramaUserRec['verificationToken'])) { $succ = VO_Users::handleVerificationToken($wo, $movieramaUserRec['id'], $movieramaUserRec['username'], $movieramaUserRec['verificationToken']); if ($succ === FALSE) { return FALSE; } } else { $wo->logError(self::_ECP . "2380 It seems you have already been verified."); return false; } return $succ; }