tmp
This commit is contained in:
parent
1c38624712
commit
2dbaf1de10
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user