Add new user field for totp secret

This commit is contained in:
syeopite 2021-07-14 22:18:01 -07:00
parent d956b1826e
commit c6d948fa01
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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