Fix MastoFE login form

This commit is contained in:
Alex Gleason 2020-07-19 16:19:13 -05:00
parent b829226cbf
commit 9f48dfb705
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ defmodule Pleroma.Web.MastodonAPI.AuthController do
@local_mastodon_name "Mastodon-Local"
@doc "GET /web/login"
def login(%{assigns: %{user: %User{}}} = conn, _params) do
def login(%{assigns: %{user: %User{}, token: _}} = conn, _params) do
redirect(conn, to: local_mastodon_root_path(conn))
end