mirror of
https://github.com/docusealco/docuseal.git
synced 2026-08-07 07:14:43 +00:00
12 lines
267 B
Ruby
12 lines
267 B
Ruby
# frozen_string_literal: true
|
|
|
|
class InvitationsController < Devise::PasswordsController
|
|
def update
|
|
super do |resource|
|
|
resource.confirmed_at ||= Time.current if resource.errors.empty?
|
|
|
|
PasswordsController::Current.user = resource
|
|
end
|
|
end
|
|
end
|