View | Details | Raw Unified | Return to bug 30588
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_30588.pl (-1 / +17 lines)
Line 0 Link Here
0
- 
1
use Modern::Perl;
2
3
return {
4
    bug_number => "30588",
5
    description => "Add an 'enforce' option for TwoFactorAuthentication",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        $dbh->do(q{
10
            UPDATE systempreferences
11
            SET options="enforced|enabled|disabled",
12
                value=CASE value WHEN '1' THEN 'enabled' ELSE 'disabled' END,
13
                type="Choice"
14
            WHERE variable="TwoFactorAuthentication"
15
        });
16
    },
17
};

Return to bug 30588