Skip to content

Commit

Permalink
Support concurrent sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Feb 21, 2024
1 parent 813cca1 commit 3fb4133
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/polar_web/controllers/publish/session_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ defmodule PolarWeb.Publish.SessionController do
%{"password" => password} = user_params

if user = Accounts.get_user_by_email_and_password(email, password) do
Repo.delete_all(Accounts.UserToken.by_user_and_contexts_query(user, :all))

session_token =
Accounts.generate_user_session_token(user)
|> Base.encode64()
Expand Down

0 comments on commit 3fb4133

Please sign in to comment.