invite fix

This commit is contained in:
Jeremy Kauffman 2016-07-15 09:34:34 -04:00
parent 39461c614a
commit 9483a3a2bf
2 changed files with 2 additions and 5 deletions

View file

@ -155,10 +155,6 @@ class DownloadActions extends Actions
{
if (!static::findInPrefinery($email))
{
if ($inviteCode)
{
throw new Exception('really???');
}
$userData = Prefinery::createTester(array_filter([
'email' => $email,
'status' => $inviteCode ? 'invited' : 'applied',

View file

@ -12,7 +12,8 @@
<?php echo $downloadHtml ?>
<h4>Claim Credits</h4>
<?php if ($prefineryUser): ?>
<p>Use email <strong><?php echo $prefineryUser['email'] ?></strong> and code <strong><?php echo $prefineryUser['invitation_code'] ?></strong> after download to receive your credits.</p>
<p>Use email <strong><?php echo $prefineryUser['email'] ?></strong> and code you received via email after download to receive your credits.</p>
<div class="meta">If you received a printed code and it does not work after you download, check your email for a different code.</div>
<?php endif ?>
<?php else: ?>
<?php echo View::render('download/_unavailable', [