CSS and invalid account warning.

This commit is contained in:
James Cole
2015-07-25 18:40:45 +02:00
parent 92799699bc
commit 2e33b43389
3 changed files with 17 additions and 12 deletions

View File

@@ -12,6 +12,7 @@ use Mail;
use Session; use Session;
use Twig; use Twig;
use Validator; use Validator;
use Request as Rq;
/** /**
* Class AuthController * Class AuthController
@@ -22,18 +23,17 @@ class AuthController extends Controller
{ {
use AuthenticatesAndRegistersUsers, ThrottlesLogins; use AuthenticatesAndRegistersUsers, ThrottlesLogins;
/**
* Show the application registration form.
*
* @return \Illuminate\Http\Response
*/
public function getRegister()
{
$host = Rq::getHttpHost();
/* return view('auth.register', compact('host'));
|-------------------------------------------------------------------------- }
| Registration & Login Controller
|--------------------------------------------------------------------------
|
| This controller handles the registration of new users, as well as the
| authentication of existing users. By default, this controller uses
| a simple trait to add these behaviors. Why don't you explore it?
|
*/
/** /**
* Handle a login request to the application. * Handle a login request to the application.

View File

@@ -15,4 +15,5 @@
/* fix login box */ /* fix login box */
.login-box {width:600px;} .login-box {width:600px;}
.login-logo {width:360px;margin-left:110px;} .login-logo {width:360px;margin-left:110px;}
.login-box-body {width:360px;margin-left:110px;} .login-box-body {width:360px;margin-left:110px;}
.register-box-body {width:360px;margin-left:110px;}

View File

@@ -17,6 +17,10 @@
<div class="register-box-body"> <div class="register-box-body">
<p class="login-box-msg">Register a new account</p> <p class="login-box-msg">Register a new account</p>
{% if host == 'geld.nder.be' %}
<p class="text-info login-box-msg">Please note that an account on this site will only
work for one (1) week.</p>
{% endif %}
<form role="form" id="register" method="POST" action="{{ URL.to('/auth/register') }}"> <form role="form" id="register" method="POST" action="{{ URL.to('/auth/register') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">