Class: Users::InvitationsController
- Inherits:
-
Devise::InvitationsController
- Object
- Devise::InvitationsController
- Users::InvitationsController
- Defined in:
- app/controllers/users/invitations_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
2 3 4 5 |
# File 'app/controllers/users/invitations_controller.rb', line 2 def edit super end |
#update ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/users/invitations_controller.rb', line 7 def update if Altcha.verify(params.permit(:altcha)[:altcha]) super else params[:invitation_token] = params[:user][:invitation_token] set_minimum_password_length resource_from_invitation_token resource.invitation_token = params[:invitation_token] flash[:alert] = t("users.registrations.create.altcha_failed") render :edit, status: :unprocessable_content end end |