mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
improve registration and add oauth
This commit is contained in:
1 parent
f7ef99a624
commit
6f3fe1dd7b
20 files changed
+170
-23
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class SessionsController < Devise::SessionsController
|
||||
def create
|
||||
if Docuseal.multitenant? && !User.exists?(email: sign_in_params[:email])
|
||||
return redirect_to new_registration_path(sign_up: true, user: sign_in_params.slice(:email)),
|
||||
notice: 'Create a new account'
|
||||
end
|
||||
|
||||
super
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user