summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/app.php4
-rw-r--r--config/config.default.php15
-rw-r--r--config/routes.php2
3 files changed, 11 insertions, 10 deletions
diff --git a/config/app.php b/config/app.php
index 17fdee11..bfb66cf3 100644
--- a/config/app.php
+++ b/config/app.php
@@ -17,7 +17,7 @@ return [
\Engelsystem\Database\DatabaseServiceProvider::class,
\Engelsystem\Http\RequestServiceProvider::class,
\Engelsystem\Http\SessionServiceProvider::class,
- \Engelsystem\Helpers\TranslationServiceProvider::class,
+ \Engelsystem\Helpers\Translation\TranslationServiceProvider::class,
\Engelsystem\Http\ResponseServiceProvider::class,
\Engelsystem\Http\Psr7ServiceProvider::class,
\Engelsystem\Helpers\AuthenticatorServiceProvider::class,
@@ -25,8 +25,10 @@ return [
\Engelsystem\Middleware\RouteDispatcherServiceProvider::class,
\Engelsystem\Middleware\RequestHandlerServiceProvider::class,
\Engelsystem\Middleware\SessionHandlerServiceProvider::class,
+ \Engelsystem\Http\Validation\ValidationServiceProvider::class,
// Additional services
+ \Engelsystem\Helpers\VersionServiceProvider::class,
\Engelsystem\Mail\MailerServiceProvider::class,
],
diff --git a/config/config.default.php b/config/config.default.php
index 306eabff..ba343cf4 100644
--- a/config/config.default.php
+++ b/config/config.default.php
@@ -99,13 +99,10 @@ return [
// Number of hours that an angel has to sign out own shifts
'last_unsubscribe' => 3,
- // Define the algorithm to use for `crypt()` of passwords
+ // Define the algorithm to use for `password_verify()`
// If the user uses an old algorithm the password will be converted to the new format
- // MD5 '$1'
- // Blowfish '$2y$13'
- // SHA-256 '$5$rounds=5000'
- // SHA-512 '$6$rounds=5000'
- 'crypt_alg' => '$6$rounds=5000',
+ // See https://secure.php.net/manual/en/password.constants.php for a complete list
+ 'password_algorithm' => PASSWORD_DEFAULT,
// The minimum length for passwords
'min_password_length' => 8,
@@ -141,12 +138,12 @@ return [
// Available locales in /locale/
'locales' => [
- 'de_DE.UTF-8' => 'Deutsch',
- 'en_US.UTF-8' => 'English',
+ 'de_DE' => 'Deutsch',
+ 'en_US' => 'English',
],
// The default locale to use
- 'default_locale' => env('DEFAULT_LOCALE', 'en_US.UTF-8'),
+ 'default_locale' => env('DEFAULT_LOCALE', 'en_US'),
// Available T-Shirt sizes, set value to null if not available
'tshirt_sizes' => [
diff --git a/config/routes.php b/config/routes.php
index e999d026..02fd3abd 100644
--- a/config/routes.php
+++ b/config/routes.php
@@ -9,6 +9,8 @@ $route->get('/', 'HomeController@index');
$route->get('/credits', 'CreditsController@index');
// Authentication
+$route->get('/login', 'AuthController@login');
+$route->post('/login', 'AuthController@postLogin');
$route->get('/logout', 'AuthController@logout');
// Stats