Implementation of a basic auth logic via API #2

Open
optclblast wants to merge 11 commits from base-auth into master
Showing only changes of commit 2dbaf1de10 - Show all commits

View File

@ -3,6 +3,7 @@ defmodule DrainCloudCore.UsersRepo do
import Ecto.Query
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