Ensure that `User.password_strength/1` always returns a value (#3389)

pull/3393/head
Adrian Gruntkowski 3 years ago committed by GitHub
parent 8bc86d165f
commit 296637dc18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -122,6 +122,9 @@ defmodule Plausible.Auth.User do
%{suggestions: [], warning: "", score: 3}
end
end
catch
_kind, _value ->
%{suggestions: [], warning: "", score: 3}
end
defp validate_password_strength(changeset) do

Loading…
Cancel
Save