mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 19:48:18 +08:00
fix hound
This commit is contained in:
parent
08439e7f58
commit
9199f287ba
3 changed files with 5 additions and 5 deletions
|
@ -41,8 +41,7 @@ class Extends
|
|||
|
||||
# Data type name should match corresponding model's name
|
||||
REPOSITORY_DATA_TYPES = { RepositoryTextValue: 0,
|
||||
RepositoryDateValue: 1,
|
||||
RepositoryListValue: 2 }
|
||||
RepositoryDateValue: 1 }
|
||||
|
||||
# List of implemented core API versions
|
||||
API_VERSIONS = ['20170715']
|
||||
|
@ -50,7 +49,7 @@ class Extends
|
|||
# Array used for injecting names of additional authentication methods for API
|
||||
API_PLUGABLE_AUTH_METHODS = []
|
||||
|
||||
OMNIAUTH_PROVIDERS = [:linkedin, *(:developer if Rails.env.development?)]
|
||||
OMNIAUTH_PROVIDERS = [:linkedin]
|
||||
|
||||
INITIAL_USER_OPTIONS = {}
|
||||
end
|
||||
|
|
|
@ -499,7 +499,8 @@ Rails.application.routes.draw do
|
|||
post 'avatar_signature' => 'users/registrations#signature'
|
||||
get 'users/auth_token_sign_in' => 'users/sessions#auth_token_create'
|
||||
get 'users/sign_up_provider' => 'users/registrations#new_with_provider'
|
||||
post 'users/complete_sign_up_provider' => 'users/registrations#create_with_provider'
|
||||
get 'users/completesign_up_provider' =>
|
||||
'users/registrations#create_with_provider'
|
||||
end
|
||||
|
||||
namespace :api, defaults: { format: 'json' } do
|
||||
|
|
|
@ -73,7 +73,7 @@ namespace :data do
|
|||
# Remove users who didn't finish signup with LinkedIn
|
||||
users = User.joins(:user_identities)
|
||||
.where(confirmed_at: nil)
|
||||
#.where('created_at < ?', Devise.confirm_within.ago)
|
||||
.where('created_at < ?', Devise.confirm_within.ago)
|
||||
destroy_users(users)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue