diff options
author | Ivan Tashkinov <ivant.business@gmail.com> | 2019-04-01 09:28:56 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivant.business@gmail.com> | 2019-04-01 09:28:56 +0300 |
commit | eadafc88b898879eb50545b700ea13c8596e908b (patch) | |
tree | c1161ff42adb9e42693641ffd038e7cbd60e13ec /lib/pleroma/web | |
parent | baffdcc480cea13269ef0e3af58f0a848892bb9a (diff) | |
download | pleroma-eadafc88b898879eb50545b700ea13c8596e908b.tar.gz |
[#923] Deps config adjustment (no `override` for `httpoison`), code analysis issues fixes.
Diffstat (limited to 'lib/pleroma/web')
-rw-r--r-- | lib/pleroma/web/auth/pleroma_authenticator.ex | 2 | ||||
-rw-r--r-- | lib/pleroma/web/endpoint.ex | 3 | ||||
-rw-r--r-- | lib/pleroma/web/oauth/oauth_controller.ex | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/pleroma/web/auth/pleroma_authenticator.ex b/lib/pleroma/web/auth/pleroma_authenticator.ex index 8b190f97f..c826adb4c 100644 --- a/lib/pleroma/web/auth/pleroma_authenticator.ex +++ b/lib/pleroma/web/auth/pleroma_authenticator.ex @@ -4,9 +4,9 @@ defmodule Pleroma.Web.Auth.PleromaAuthenticator do alias Comeonin.Pbkdf2 - alias Pleroma.User alias Pleroma.Registration alias Pleroma.Repo + alias Pleroma.User @behaviour Pleroma.Web.Auth.Authenticator diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex index f92724d8b..b85b95bf9 100644 --- a/lib/pleroma/web/endpoint.ex +++ b/lib/pleroma/web/endpoint.ex @@ -60,7 +60,8 @@ defmodule Pleroma.Web.Endpoint do same_site = if Pleroma.Config.get([:auth, :oauth_consumer_enabled]) do - # Note: "SameSite=Strict" prevents sign in with external OAuth provider (no cookies during callback request) + # Note: "SameSite=Strict" prevents sign in with external OAuth provider + # (there would be no cookies during callback request from OAuth provider) "SameSite=Lax" else "SameSite=Strict" diff --git a/lib/pleroma/web/oauth/oauth_controller.ex b/lib/pleroma/web/oauth/oauth_controller.ex index e54e196aa..54e0a35ba 100644 --- a/lib/pleroma/web/oauth/oauth_controller.ex +++ b/lib/pleroma/web/oauth/oauth_controller.ex @@ -5,9 +5,9 @@ defmodule Pleroma.Web.OAuth.OAuthController do use Pleroma.Web, :controller + alias Pleroma.Registration alias Pleroma.Repo alias Pleroma.User - alias Pleroma.Registration alias Pleroma.Web.Auth.Authenticator alias Pleroma.Web.OAuth.App alias Pleroma.Web.OAuth.Authorization |