[#114] Added :user_id component to email confirmation path to improve the security.

Added tests for `confirm_email` action.
This commit is contained in:
Ivan Tashkinov 2018-12-20 13:41:30 +03:00
commit f69cbf4755
5 changed files with 26 additions and 10 deletions

View file

@ -70,6 +70,7 @@ defmodule Pleroma.UserEmail do
Router.Helpers.confirm_email_url(
Endpoint,
:confirm_email,
user.id,
to_string(user.info.confirmation_token)
)