From c6d948fa01adc0a722265293a9b53ff53333eb5f Mon Sep 17 00:00:00 2001 From: syeopite Date: Wed, 14 Jul 2021 22:18:01 -0700 Subject: [PATCH] Add new user field for totp secret --- src/invidious/user/user.cr | 1 + src/invidious/users.cr | 1 + 2 files changed, 2 insertions(+) diff --git a/src/invidious/user/user.cr b/src/invidious/user/user.cr index a6d05fd1..bda72b88 100644 --- a/src/invidious/user/user.cr +++ b/src/invidious/user/user.cr @@ -7,6 +7,7 @@ struct Invidious::User property notifications : Array(String) property subscriptions : Array(String) property email : String + property totp_secret : String? @[DB::Field(converter: Invidious::User::PreferencesConverter)] property preferences : Preferences diff --git a/src/invidious/users.cr b/src/invidious/users.cr index 65566d20..f5488509 100644 --- a/src/invidious/users.cr +++ b/src/invidious/users.cr @@ -17,6 +17,7 @@ def create_user(sid, email, password) token: token, watched: [] of String, feed_needs_update: true, + totp_secret: nil, }) return user, sid