Skip to content

Firefly III: a personal finances manager

CSS and invalid account warning.

James Cole2e33b43389f6
diff --git a/app/Http/Controllers/Auth/AuthController.php b/app/Http/Controllers/Auth/AuthController.php
index 538263450d..58cfa03bcc 100644
--- a/app/Http/Controllers/Auth/AuthController.php
+++ b/app/Http/Controllers/Auth/AuthController.php
@@ -12,6 +12,7 @@ use Mail;
use Session;
use Twig;
use Validator;
+use Request as Rq;
/**
* Class AuthController
@@ -22,18 +23,17 @@ class AuthController extends Controller
{
use AuthenticatesAndRegistersUsers, ThrottlesLogins;
+ /**
+ * Show the application registration form.
+ *
+ * @return \Illuminate\Http\Response
+ */
+ public function getRegister()
+ {
+ $host = Rq::getHttpHost();
- /*
- |--------------------------------------------------------------------------
- | 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?
- |
- */
-
+ return view('auth.register', compact('host'));
+ }
/**
* Handle a login request to the application.
diff --git a/public/css/firefly.css b/public/css/firefly.css
index 98fef1454b..147bcec4f0 100644
--- a/public/css/firefly.css
+++ b/public/css/firefly.css
@@ -15,4 +15,5 @@
/* fix login box */
.login-box {width:600px;}
.login-logo {width:360px;margin-left:110px;}
-.login-box-body {width:360px;margin-left:110px;}
\ No newline at end of file
+.login-box-body {width:360px;margin-left:110px;}
+.register-box-body {width:360px;margin-left:110px;}
\ No newline at end of file
diff --git a/resources/twig/auth/register.twig b/resources/twig/auth/register.twig
index 5898015069..98e69fa60d 100644
--- a/resources/twig/auth/register.twig
+++ b/resources/twig/auth/register.twig
@@ -17,6 +17,10 @@
<div class="register-box-body">
<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') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">