From 7a6401c9438b1133eba4593146af04fbc6d03dae Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 16 Jun 2017 14:55:40 -0400 Subject: [PATCH] update script fixes --- util/SqlUpdate/2017-06-07_00_UserTwoFactorCleanup.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/SqlUpdate/2017-06-07_00_UserTwoFactorCleanup.sql b/util/SqlUpdate/2017-06-07_00_UserTwoFactorCleanup.sql index 326041f8e7..b408fb4fa5 100644 --- a/util/SqlUpdate/2017-06-07_00_UserTwoFactorCleanup.sql +++ b/util/SqlUpdate/2017-06-07_00_UserTwoFactorCleanup.sql @@ -1,3 +1,6 @@ +alter table [user] add [TwoFactorProviders] NVARCHAR (MAX) NULL +go + update [user] set twofactorproviders = '{"0":{"Enabled":'+ (case when twofactorenabled = 1 then 'true' else 'false' end) +',"Remember":true,"MetaData":{"Key":"'+ authenticatorkey +'"}}}' where twofactorprovider is not null and twofactorprovider = 0