From fff6067ac1cf9a33b901fc8b39e1c6ae84e9cd13 Mon Sep 17 00:00:00 2001 From: Rene Krenn <rkrenn@sipwise.com> Date: Thu, 20 Feb 2025 13:54:30 +0100 Subject: [PATCH] MT#53706 OTP secret cols for admin records Change-Id: I685014e94995d2f197778cf5cb664d45e4618825 --- .gitignore | 1 + lib/NGCP/Schema/Result/admins.pm | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index 4d316653..ba9a0d96 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ MYMETA.json MYMETA.yml .tags .remote-sync.json +.vscode \ No newline at end of file diff --git a/lib/NGCP/Schema/Result/admins.pm b/lib/NGCP/Schema/Result/admins.pm index a45f770d..01cf3a50 100644 --- a/lib/NGCP/Schema/Result/admins.pm +++ b/lib/NGCP/Schema/Result/admins.pm @@ -97,6 +97,16 @@ __PACKAGE__->add_columns( extra => { list => ["local", "ldap"] }, is_nullable => 0, }, + "enable_2fa", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "show_otp_registration_info", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "otp_secret", + { + data_type => "char", + is_nullable => 1, + size => 32, + }, ); __PACKAGE__->set_primary_key("id");