improve registration and add oauth

This commit is contained in:
Alex Turchyn committed 2023-07-15 13:38:12 +03:00
1 parent f7ef99a624
commit 6f3fe1dd7b
20 files changed
+170 -23

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ class User < ApplicationRecord
belongs_to :account
devise :database_authenticatable, :recoverable, :rememberable, :validatable, :trackable
devise :registerable if Docuseal.multitenant?
devise :registerable, :omniauthable, omniauth_providers: [:google_oauth2] if Docuseal.multitenant?
attribute :role, :string, default: 'admin'