Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F21841924
settings.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
659 B
Referenced Files
None
Subscribers
None
settings.ex
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.MFA.Settings
do
use
Ecto.Schema
@primary_key
false
@mfa_methods
[
:totp
]
embedded_schema
do
field
(
:enabled
,
:boolean
,
default
:
false
)
field
(
:backup_codes
,
{
:array
,
:string
},
default
:
[])
embeds_one
:totp
,
TOTP
,
on_replace
:
:delete
,
primary_key
:
false
do
field
(
:secret
,
:string
)
# app | sms
field
(
:delivery_type
,
:string
,
default
:
"app"
)
field
(
:confirmed
,
:boolean
,
default
:
false
)
end
end
def
mfa_methods
,
do
:
@mfa_methods
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sat, Dec 27, 11:51 PM (19 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
730618
Default Alt Text
settings.ex (659 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment