本地版去掉三方登录

This commit is contained in:
xxq250 2023-05-12 10:06:40 +08:00
parent c64f241cf8
commit 07696682ca
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ class SettingsController < ApplicationController
def get_third_party
@third_party = []
return if EduSetting.get("is_local") == "true"
@third_party << {
name: 'educoder',
url: EducoderOauth.oauth_url
@ -71,6 +72,7 @@ class SettingsController < ApplicationController
def get_third_party_new
@third_party_new = []
return if EduSetting.get("is_local") == "true"
@third_party_new << {
name: 'educoder',
url: EducoderOauth.oauth_url,