aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/account/config/production.php
diff options
context:
space:
mode:
authorMarvin Borner2018-05-23 22:23:28 +0200
committerMarvin Borner2018-05-23 22:23:28 +0200
commitb66a61addb6c8e66cb26fcf74b532d68891267e4 (patch)
tree05e9449ff25bdc98f68105f41923ccb9f6ef5095 /main/app/sprinkles/account/config/production.php
parent1d4ef435177a5f9b6d1a289800d933e49be0c550 (diff)
Refactored code, many fixes and improvements in chat backend+frontend
Diffstat (limited to 'main/app/sprinkles/account/config/production.php')
-rw-r--r--main/app/sprinkles/account/config/production.php124
1 files changed, 62 insertions, 62 deletions
diff --git a/main/app/sprinkles/account/config/production.php b/main/app/sprinkles/account/config/production.php
index b7c3288..42b8ada 100644
--- a/main/app/sprinkles/account/config/production.php
+++ b/main/app/sprinkles/account/config/production.php
@@ -1,67 +1,67 @@
<?php
- /**
- * Account production config file for UserFrosting. You may override/extend this in your site's configuration file to customize deploy settings.
- *
- */
+/**
+ * Account production config file for UserFrosting. You may override/extend this in your site's configuration file to customize deploy settings.
+ *
+ */
- return [
- // See http://security.stackexchange.com/a/59550/74909 for the inspiration for our throttling system
- 'throttles' => [
- 'check_username_request' => [
- 'method' => 'ip',
- 'interval' => 3600,
- 'delays' => [
- 40 => 1000
- ]
- ],
- 'password_reset_request' => [
- 'method' => 'ip',
- 'interval' => 3600,
- 'delays' => [
- 2 => 5,
- 3 => 10,
- 4 => 20,
- 5 => 40,
- 6 => 80,
- 7 => 600
- ]
- ],
- 'registration_attempt' => [
- 'method' => 'ip',
- 'interval' => 3600,
- 'delays' => [
- 2 => 5,
- 3 => 10,
- 4 => 20,
- 5 => 40,
- 6 => 80,
- 7 => 600
- ]
- ],
- 'sign_in_attempt' => [
- 'method' => 'ip',
- 'interval' => 3600,
- 'delays' => [
- 4 => 5,
- 5 => 10,
- 6 => 20,
- 7 => 40,
- 8 => 80,
- 9 => 600
- ]
- ],
- 'verification_request' => [
- 'method' => 'ip',
- 'interval' => 3600,
- 'delays' => [
- 2 => 5,
- 3 => 10,
- 4 => 20,
- 5 => 40,
- 6 => 80,
- 7 => 600
- ]
+return [
+ // See http://security.stackexchange.com/a/59550/74909 for the inspiration for our throttling system
+ 'throttles' => [
+ 'check_username_request' => [
+ 'method' => 'ip',
+ 'interval' => 3600,
+ 'delays' => [
+ 40 => 1000
+ ]
+ ],
+ 'password_reset_request' => [
+ 'method' => 'ip',
+ 'interval' => 3600,
+ 'delays' => [
+ 2 => 5,
+ 3 => 10,
+ 4 => 20,
+ 5 => 40,
+ 6 => 80,
+ 7 => 600
+ ]
+ ],
+ 'registration_attempt' => [
+ 'method' => 'ip',
+ 'interval' => 3600,
+ 'delays' => [
+ 2 => 5,
+ 3 => 10,
+ 4 => 20,
+ 5 => 40,
+ 6 => 80,
+ 7 => 600
+ ]
+ ],
+ 'sign_in_attempt' => [
+ 'method' => 'ip',
+ 'interval' => 3600,
+ 'delays' => [
+ 4 => 5,
+ 5 => 10,
+ 6 => 20,
+ 7 => 40,
+ 8 => 80,
+ 9 => 600
+ ]
+ ],
+ 'verification_request' => [
+ 'method' => 'ip',
+ 'interval' => 3600,
+ 'delays' => [
+ 2 => 5,
+ 3 => 10,
+ 4 => 20,
+ 5 => 40,
+ 6 => 80,
+ 7 => 600
]
]
- ];
+ ]
+];