Skip to content

Commit

Permalink
Don't create a reset code at user creation (#311)
Browse files Browse the repository at this point in the history
The code to verify the email is created and stored under
user.stat.verification_code, and the reset code created was just
useless.
The code that removed the use of this token was introduced in 6668f47
"general cleanup", that seems to have been an oversight.
  • Loading branch information
geekingfrog authored Jun 9, 2024
1 parent f49619c commit 5264167
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/teiserver/common/email_helper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ defmodule Teiserver.EmailHelper do
website_url = "https://#{host}"
verification_code = stats["verification_code"]

{:ok, _code} =
Teiserver.Account.create_code(%{
value: UUID.uuid4(),
purpose: "reset_password",
expires: Timex.now() |> Timex.shift(hours: 24),
user_id: user.id
})

message_id = "<#{UUID.uuid4()}@#{host}>"

game_name = Application.get_env(:teiserver, Teiserver)[:game_name]
Expand Down

0 comments on commit 5264167

Please sign in to comment.