Skip to content

Commit

Permalink
Disable captcha and email when in devmode
Browse files Browse the repository at this point in the history
  • Loading branch information
xrobau committed May 30, 2019
1 parent 7bf5f01 commit 0c8c165
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sprinkles/example/config/default.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<?php

if (getenv('DEVMODE') == 'true') {
$registration = [ 'captcha' => false, 'require_email_verification' => false, ];
} else {
$registration = [];
}


return [
'site' => [
'registration' => $registration,
],
'session' => [
'handler' => 'database',
],
Expand Down

0 comments on commit 0c8c165

Please sign in to comment.