Skip to content

Commit 8b63530

Browse files
committed
Add dummy pw check when user isn't found
1 parent 389f8ac commit 8b63530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/helpers/session.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule HelloPhoenix.Session do
1212

1313
defp check_password(user, password) do
1414
case user do
15-
nil -> false
15+
nil -> Comeonin.Bcrypt.dummy_checkpw()
1616
_ -> Comeonin.Bcrypt.checkpw(password, user.encrypted_password)
1717
end
1818
end

0 commit comments

Comments
 (0)