Class: Decidim::FriendlySignup::ConfirmationCodesController
- Inherits:
-
Devise::ConfirmationsController
- Object
- Devise::ConfirmationsController
- Decidim::FriendlySignup::ConfirmationCodesController
show all
- Includes:
- Decidim::FormFactory, NeedsHeaderSnippets
- Defined in:
- app/controllers/decidim/friendly_signup/confirmation_codes_controller.rb
Instance Method Summary
collapse
#friendly_override_activated?, #snippets
Instance Method Details
#create ⇒ Object
14
15
16
17
18
19
20
21
22
23
|
# File 'app/controllers/decidim/friendly_signup/confirmation_codes_controller.rb', line 14
def create
if confirmation_form.valid?
user.confirm
flash[:success] = I18n.t("confirmation_codes.create.user_confirmed", name: user.name, scope: "decidim.friendly_signup")
return sign_in_and_redirect user, event: :authentication
end
flash.now[:alert] = confirmation_form.errors.messages.values.flatten.join(" ")
render :index
end
|
#index ⇒ Object
12
|
# File 'app/controllers/decidim/friendly_signup/confirmation_codes_controller.rb', line 12
def index; end
|