Added: Subscription page

I thought of you when I wrote that.

On Sun, Sep 21, 2014 at 5:46 PM, lol768 <notifications@github.com> wrote:

>> +        if (($emails !== null && count($emails) > 0) && !in_array($email, $emails)) {
>> +            return Redirect::back()->withErrors(['Invalid email.'])->withInput();
>> +        }
>> +        $subscription = new Subscription();
>> +        $subscription->gh_id = $this->auth->getUserId();
>> +        $subscription->gh_username = $this->auth->getUsername();
>> +        $subscription->email = $email;
>> +        $subscription->save();
>> +        parse_str($this->hmacCreator->createSignature($email, Config::get('gh-data.verification-key')), $output);
>> +        $sha1 = $output['sha1'];
>> +        Queue::push(
>> +            '\\TenJava\\QueueJobs\\SendMailJob',
>> +            [
>> +                'gh_id' => $this->auth->getUserId(),
>> +                'template' => 'emails.news.welcome',
>> +                'subject' => 'Confirm Subscription to ten.java Updates!',
> I hate title case.
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/tenjava/website/pull/140/files#r17828397