Update an icon in integrations

This commit is contained in:
Eugene Burmakin 2025-11-14 19:06:16 +01:00
parent bedac89821
commit 8ecd75429b
2 changed files with 4 additions and 6 deletions

View file

@ -12,10 +12,7 @@ module Omniauthable
# First, try to find user by provider and uid (for linked accounts) # First, try to find user by provider and uid (for linked accounts)
user = find_by(provider: provider, uid: uid) user = find_by(provider: provider, uid: uid)
if user return user if user
# User found by provider/uid
return user
end
# If not found, try to find by email # If not found, try to find by email
user = find_by(email: data['email']) user = find_by(email: data['email'])

View file

@ -72,11 +72,12 @@
<% unless DawarichSettings.self_hosted? %> <% unless DawarichSettings.self_hosted? %>
<div> <div>
<h2 class="text-2xl font-bold mb-4 flex items-center"> <h2 class="text-2xl font-bold mb-4 flex items-center">
<%= icon 'link', class: "h-6 w-6 text-info-content" %>Connected Accounts <%= icon 'link', class: "text-primary mr-1" %> Connected Accounts
</h2> </h2>
<div class="bg-base-100 p-5 rounded-lg shadow-sm space-y-4"> <div class="bg-base-100 p-5 rounded-lg shadow-sm space-y-4">
<p class="text-sm text-base-content/70"> <p class="text-sm text-base-content/70">
OAuth providers configured: <%= OMNIAUTH_PROVIDERS.map(&:to_s).join(', ').presence || 'None' %> You've connected your account using the following OAuth provider:
<strong><%= current_user.provider.capitalize %></strong>
</p> </p>
</div> </div>
</div> </div>