New views for password reset, login and other user forms.

This commit is contained in:
James Cole
2018-11-25 11:31:02 +01:00
parent 99cc7a9a60
commit 4420df6e5d
41 changed files with 792 additions and 76 deletions

View File

@@ -109,10 +109,11 @@ class ForgotPasswordController extends Controller
$singleUserMode = FireflyConfig::get('single_user_mode', config('firefly.configuration.single_user_mode'))->data;
$userCount = User::count();
$allowRegistration = true;
$pageTitle = (string)trans('firefly.forgot_pw_page_title');
if (true === $singleUserMode && $userCount > 0) {
$allowRegistration = false;
}
return view('auth.passwords.email')->with(compact('allowRegistration'));
return view('auth.passwords.email')->with(compact('allowRegistration', 'pageTitle'));
}
}