diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-10-23 18:20:28 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-10-28 17:11:00 +0000 |
commit | d551a1f6a7be39646e718683b14a572402e23981 (patch) | |
tree | 7c6129a7fe2adbf4123f58f6765bdccc3178892d /t/app/controller/auth.t | |
parent | dce115c18fcc3565176b0d65fe7a70926a8eb213 (diff) |
Allow non-superusers to store 2FA secrets.
Diffstat (limited to 't/app/controller/auth.t')
-rw-r--r-- | t/app/controller/auth.t | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/t/app/controller/auth.t b/t/app/controller/auth.t index ffabc75f3..fc1966b17 100644 --- a/t/app/controller/auth.t +++ b/t/app/controller/auth.t @@ -290,7 +290,6 @@ subtest "Test two-factor authentication login" => sub { my $wrong_code = $auth->code(undef, time() - 120); my $user = FixMyStreet::App->model('DB::User')->find( { email => $test_email } ); - $user->is_superuser(1); $user->password('password'); $user->set_extra_metadata('2fa_secret', $auth->secret32); $user->update; |