mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
adjust invitation
This commit is contained in:
1 parent
dc178ef03f
commit
fd2ba57325
2 files changed
+8
-1
No files matched your search
@@ -1,4 +1,11 @@
|
||||
# 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
|
||||
Reference in new issue
Block a user