mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 11:53:44 +08:00
21 lines
492 B
Ruby
21 lines
492 B
Ruby
# frozen_string_literal: true
|
|
|
|
class TestSecondFactorAction < SecondFactor::Actions::Base
|
|
def no_second_factors_enabled!(params)
|
|
end
|
|
|
|
def second_factor_auth_required!(params)
|
|
{
|
|
redirect_url: params[:redirect_url],
|
|
callback_params: {
|
|
saved_param_1: params[:saved_param_1],
|
|
saved_param_2: params[:saved_param_2],
|
|
},
|
|
description: "this is description for test action",
|
|
}
|
|
end
|
|
|
|
def second_factor_auth_completed!(callback_params)
|
|
end
|
|
end
|