mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-12-26 09:22:00 +08:00
Don't print token in URL when disabled
This commit is contained in:
parent
52fc451a45
commit
193050cae5
1 changed files with 2 additions and 2 deletions
|
@ -84,10 +84,10 @@ defmodule Livebook.Application do
|
|||
end
|
||||
|
||||
defp access_url() do
|
||||
token = Application.get_env(:livebook, :token)
|
||||
root_url = LivebookWeb.Endpoint.url()
|
||||
|
||||
if token do
|
||||
if Livebook.Config.auth_mode() == :token do
|
||||
token = Application.fetch_env!(:livebook, :token)
|
||||
root_url <> "/?token=" <> token
|
||||
else
|
||||
root_url
|
||||
|
|
Loading…
Reference in a new issue