mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-01-05 03:00:52 -05:00
Change to license page
This commit is contained in:
parent
b846fcaaa9
commit
77289e270e
@ -406,16 +406,26 @@ class PaymentController extends \BaseController
|
||||
|
||||
}
|
||||
|
||||
$licenseKey = Utils::generateLicense();
|
||||
|
||||
$license = new License;
|
||||
$license->first_name = Input::get('first_name');
|
||||
$license->last_name = Input::get('last_name');
|
||||
$license->email = Input::get('email');
|
||||
$license->transaction_reference = $ref;
|
||||
$license->license_key = Utils::generateLicense();
|
||||
$license->license_key = $licenseKey;
|
||||
$license->affiliate_id = Session::get('affiliate_id');
|
||||
$license->save();
|
||||
|
||||
return Redirect::away(Session::get('return_url') . "?license_key={$license->license_key}");
|
||||
|
||||
$data = [
|
||||
'license' => $licenseKey,
|
||||
'hideHeader' => true
|
||||
];
|
||||
|
||||
return View::make('public.license', $data);
|
||||
|
||||
//return Redirect::away(Session::get('return_url') . "?license_key={$license->license_key}");
|
||||
}
|
||||
catch (\Exception $e)
|
||||
{
|
||||
|
||||
32
app/views/public/license.blade.php
Normal file
32
app/views/public/license.blade.php
Normal file
@ -0,0 +1,32 @@
|
||||
@extends('public.header')
|
||||
|
||||
@section('content')
|
||||
|
||||
<section class="hero background hero-secure center" data-speed="2" data-type="background">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h1>License Key</h1>
|
||||
<!--<p class="thin"><img src="{{ asset('images/icon-secure-pay.png') }}">256-BiT Encryption</p>-->
|
||||
<!-- <img src="{{ asset('images/providers.png') }}"> -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
|
||||
<section class="faq">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2 style="text-align:center">{{ $license }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
|
||||
|
||||
@stop
|
||||
Loading…
x
Reference in New Issue
Block a user