mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
add console redirect
This commit is contained in:
1 parent
7697b94f73
commit
896b149b25
4 files changed
+20
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ConsoleRedirectController < ApplicationController
|
||||
def index
|
||||
auth = JsonWebToken.encode(uuid: current_user.uuid,
|
||||
action: :sign_in,
|
||||
exp: 1.minute.from_now.to_i)
|
||||
|
||||
redirect_to("#{Docuseal::CONSOLE_URL}?#{{ auth: }.to_query}", allow_other_host: true)
|
||||
end
|
||||
end
|
||||
@@ -23,6 +23,9 @@
|
||||
<li>
|
||||
<%= link_to 'Team', settings_users_path, class: 'text-base hover:bg-base-300' %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to 'Console', console_redirect_index_path, class: 'text-base hover:bg-base-300' %>
|
||||
</li>
|
||||
</ul>
|
||||
</menu-active>
|
||||
<div class="mx-4 border-t border-base-300 hidden md:block">
|
||||
|
||||
Reference in new issue
Block a user