mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-11-23 19:33:46 +01:00
Use Omniauthable user model with admin role
This commit is contained in:
1 parent
52c8e3d7d2
commit
b0f8bc5090
18 files changed
+167
-39
No files matched your search
@@ -233,6 +233,7 @@ Devise.setup do |config|
|
||||
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
||||
# up on your models and hooks.
|
||||
# config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
|
||||
config.omniauth :developer, fields: [:name], uid_field: :name
|
||||
|
||||
# ==> Warden configuration
|
||||
# If you want to use other strategies, that are not supported by Devise, or
|
||||
|
||||
Reference in new issue
Block a user