Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ukutaht committed Jun 25, 2021
1 parent d5e79a2 commit b7dcbb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/plausible_web/controllers/auth_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,13 @@ defmodule PlausibleWeb.AuthController do

def activate(conn, %{"code" => code}) do
user = conn.assigns[:current_user]

has_invitation =
Repo.exists?(
from i in Plausible.Auth.Invitation,
where: i.email == ^user.email
)

{code, ""} = Integer.parse(code)

case Auth.verify_email(user, code) do
Expand Down

0 comments on commit b7dcbb5

Please sign in to comment.