mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 23:32:33 -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
+1
-1
@@ -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'
|
||||
|
||||
|
||||
Reference in new issue
Block a user