Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:tryzealot/zealot into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Dec 22, 2021
2 parents 866cf66 + faf64b1 commit 70f3667
Show file tree
Hide file tree
Showing 7 changed files with 308 additions and 329 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ARG BUILD_DATE
ARG VCS_REF
ARG TAG

ARG ZEALOT_VERSION="4.3.0"
ARG ZEALOT_VERSION="4.3.1"
ARG REPLACE_CHINA_MIRROR="true"
ARG ORIGINAL_REPO_URL="dl-cdn.alpinelinux.org"
ARG MIRROR_REPO_URL="mirrors.ustc.edu.cn"
Expand Down
1 change: 1 addition & 0 deletions app/controllers/users/omniauth_callbacks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
end

def passthru
# User had been logged in, redirect to root page
redirect_to root_path(signin: 'true')
end

Expand Down
4 changes: 2 additions & 2 deletions app/models/concerns/user_omniauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ def from_omniauth(auth)
end

def oauth_providers
omniauth_providers.each_with_object([]) do |name, obj|
@oauth_providers ||= Devise.omniauth_providers.each_with_object([]) do |name, obj|
obj << name if enabled?(name)
end
end

def enabled?(name)
send("enabled_#{name}?")
send("enabled_#{name}?".to_sym)
end

def enabled_google_oauth2?
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/shared/_links.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
title = omniauth_display_name(provider)
key = title.downcase

a.btn.btn-default.btn-block.text-left href="#{public_send("user_#{provider}_omniauth_authorize_path")}" class="btn-auth-#{key}"
a.btn.btn-default.btn-block.text-left href="#{public_send("user_#{provider}_omniauth_authorize_path")}" class="btn-auth-#{key}" data-method="post"
= t('devise.shared.links.sign_in_with_provider', provider: t("devise.shared.links.provider.#{key}", default: title))
i.icon.fab.float-right class="fa-#{key}"

Expand Down
606 changes: 302 additions & 304 deletions config/initializers/devise.rb

Large diffs are not rendered by default.

20 changes: 0 additions & 20 deletions config/initializers/devise_permitted_parameters.rb

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"devDependencies": {
"webpack-dev-server": "^3.11.3"
},
"version": "4.3.0"
"version": "4.3.1"
}

0 comments on commit 70f3667

Please sign in to comment.