mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-28 23:48:31 +00:00
Add new user field for totp secret
This commit is contained in:
parent
d956b1826e
commit
c6d948fa01
@ -7,6 +7,7 @@ struct Invidious::User
|
|||||||
property notifications : Array(String)
|
property notifications : Array(String)
|
||||||
property subscriptions : Array(String)
|
property subscriptions : Array(String)
|
||||||
property email : String
|
property email : String
|
||||||
|
property totp_secret : String?
|
||||||
|
|
||||||
@[DB::Field(converter: Invidious::User::PreferencesConverter)]
|
@[DB::Field(converter: Invidious::User::PreferencesConverter)]
|
||||||
property preferences : Preferences
|
property preferences : Preferences
|
||||||
|
@ -17,6 +17,7 @@ def create_user(sid, email, password)
|
|||||||
token: token,
|
token: token,
|
||||||
watched: [] of String,
|
watched: [] of String,
|
||||||
feed_needs_update: true,
|
feed_needs_update: true,
|
||||||
|
totp_secret: nil,
|
||||||
})
|
})
|
||||||
|
|
||||||
return user, sid
|
return user, sid
|
||||||
|
Loading…
Reference in New Issue
Block a user