aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-02-07 13:09:45 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-02-07 13:09:45 +0000
commit7361782de3d072f8d09442e33aa9c42a7c181c4c (patch)
tree5b8f49a13eb6f3aeb152262cbe66d55a48c4924d /perllib/FixMyStreet/App.pm
parent6879af98d0246b6973affff08a4e078206bb5dfc (diff)
parent3e721ddf5d9809c9f44d7dedcf2083a544e6e148 (diff)
Merge branch '2fa-superuser'
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r--perllib/FixMyStreet/App.pm17
1 files changed, 13 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index a3331d32a..008aea595 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -62,10 +62,19 @@ __PACKAGE__->config(
'Plugin::Authentication' => {
default_realm => 'default',
default => {
- credential => { # Catalyst::Authentication::Credential::Password
- class => 'Password',
- password_field => 'password',
- password_type => 'self_check',
+ credential => {
+ class => 'MultiFactor',
+ factors => [
+ # Catalyst::Authentication::Credential::Password
+ {
+ class => 'Password',
+ password_field => 'password',
+ password_type => 'self_check',
+ },
+ {
+ class => '2FA',
+ },
+ ],
},
store => { # Catalyst::Authentication::Store::DBIx::Class
class => 'DBIx::Class',