MishkaCmsCore. Accounts. Changes. RequireCurrentCode
(Mishka CMS Core v0.0.1)
Copy Markdown
View Source
Asks the action's :code argument to be a current code from an authenticator app before the
write, and spends it (MishkaCmsCore.Accounts.SecondFactor.use_code/3): the account's own with
of: :account, the default, or the admin's running the action with of: :actor — who then has to
have set one up for their own account first. A refusal is
MishkaCmsCore.Accounts.SecondFactor.Needed, or the rate limiter's.
change MishkaCmsCore.Accounts.Changes.RequireCurrentCode
change {MishkaCmsCore.Accounts.Changes.RequireCurrentCode, of: :actor}