This commit is contained in:
r8zavetr8v 2024-09-16 22:48:04 +03:00
parent 1c38624712
commit 2dbaf1de10

View File

@ -3,6 +3,7 @@ defmodule DrainCloudCore.UsersRepo do
import Ecto.Query import Ecto.Query
def password_by_login(login) do def password_by_login(login) do
Repo.all(from u in :users, where: u.login = login, select: u.password, limit: 1) query = from u in :users, where: u.login = login, select: u.password, limit: 1
Repo.all(query)
end end
end end