aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/user.ex
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2018-12-14 16:38:56 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2018-12-18 17:18:53 +0300
commita05cb10a95901ff0daacfc17a7709f3a277f1cd4 (patch)
tree56ffb3953482edf06030520a8e7ad8d703b73265 /lib/pleroma/user.ex
parentb6ae412fcd7c67d64dd1467e8e35d17140e992df (diff)
downloadpleroma-a05cb10a95901ff0daacfc17a7709f3a277f1cd4.tar.gz
[#114] Email confirmation route, action, node setting, User.Info fields.
Diffstat (limited to 'lib/pleroma/user.ex')
-rw-r--r--lib/pleroma/user.ex4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
index 3ad1ab87a..ee0a0dfb9 100644
--- a/lib/pleroma/user.ex
+++ b/lib/pleroma/user.ex
@@ -364,6 +364,10 @@ defmodule Pleroma.User do
end
end
+ def get_by_confirmation_token(token) do
+ Repo.one(from(u in User, where: fragment("? ->> 'confirmation_token' = ?", u.info, ^token)))
+ end
+
def get_followers_query(%User{id: id, follower_address: follower_address}) do
from(
u in User,