mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-12-27 01:42:11 +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
|
end
|
||||||
|
|
||||||
defp access_url() do
|
defp access_url() do
|
||||||
token = Application.get_env(:livebook, :token)
|
|
||||||
root_url = LivebookWeb.Endpoint.url()
|
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
|
root_url <> "/?token=" <> token
|
||||||
else
|
else
|
||||||
root_url
|
root_url
|
||||||
|
|
Loading…
Reference in a new issue