Do not redirect to the wizard in case of an empty config.ini
This commit is contained in:
parent
4ab5b2abf3
commit
be6358452e
|
@ -33,16 +33,9 @@ class AuthenticationController extends ActionController
|
||||||
*/
|
*/
|
||||||
public function loginAction()
|
public function loginAction()
|
||||||
{
|
{
|
||||||
if (@file_exists(Config::$configDir . '/setup.token')) {
|
if (@file_exists(Config::resolvePath('setup.token')) && !@file_exists(Config::resolvePath('config.ini'))) {
|
||||||
try {
|
|
||||||
$config = Config::app()->toArray();
|
|
||||||
if (empty($config)) {
|
|
||||||
$this->redirectNow(Url::fromPath('setup'));
|
$this->redirectNow(Url::fromPath('setup'));
|
||||||
}
|
}
|
||||||
} catch (NotReadableError $e) {
|
|
||||||
// Gets thrown in case of insufficient permission only
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$auth = $this->Auth();
|
$auth = $this->Auth();
|
||||||
$this->view->form = $form = new LoginForm();
|
$this->view->form = $form = new LoginForm();
|
||||||
|
|
Loading…
Reference in New Issue