Internationalise several forms for #1090

This commit is contained in:
James Cole
2018-01-02 17:25:59 +01:00
parent 4ec123a19a
commit fa676f60fb
8 changed files with 93 additions and 39 deletions

View File

@@ -22,7 +22,9 @@ declare(strict_types=1);
namespace FireflyIII\Http\Controllers\Auth;
use FireflyConfig;
use FireflyIII\Http\Controllers\Controller;
use FireflyIII\User;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
/**
@@ -43,6 +45,24 @@ class ForgotPasswordController extends Controller
use SendsPasswordResetEmails;
/**
* Display the form to request a password reset link.
*
* @return \Illuminate\Http\Response
*/
public function showLinkRequestForm()
{
// is allowed to?
$singleUserMode = FireflyConfig::get('single_user_mode', config('firefly.configuration.single_user_mode'))->data;
$userCount = User::count();
$allowRegistration = true;
if (true === $singleUserMode && $userCount > 0) {
$allowRegistration = false;
}
return view('auth.passwords.email')->with(compact('allowRegistration'));
}
/**
* Create a new controller instance.
*/