formating
This commit is contained in:
parent
d607b4d840
commit
5ff20793e7
|
@ -44,4 +44,3 @@ def check_password(conn, %{"user" => username, "pass" => password}) do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -42,7 +42,13 @@ test "/user_exists", %{conn: conn} do
|
|||
|
||||
test "/check_password", %{conn: conn} do
|
||||
user = insert(:user, password_hash: Comeonin.Pbkdf2.hashpwsalt("cool"))
|
||||
_deactivated_user = insert(:user, nickname: "konata", deactivated: true, password_hash: Comeonin.Pbkdf2.hashpwsalt("cool"))
|
||||
|
||||
_deactivated_user =
|
||||
insert(:user,
|
||||
nickname: "konata",
|
||||
deactivated: true,
|
||||
password_hash: Comeonin.Pbkdf2.hashpwsalt("cool")
|
||||
)
|
||||
|
||||
res =
|
||||
conn
|
||||
|
@ -65,7 +71,6 @@ test "/check_password", %{conn: conn} do
|
|||
|
||||
assert res == false
|
||||
|
||||
|
||||
res =
|
||||
conn
|
||||
|> get(mongoose_im_path(conn, :check_password), user: "nobody", pass: "cool")
|
||||
|
|
Loading…
Reference in a new issue