britton-jb / sentinel

DEPRECATED - Phoenix Authentication library that wraps Guardian for extra functionality
MIT License
106 stars 19 forks source link

with statement in Sentinel.Controllers.Html.AuthController.new_user has no else clause #48

Open sgeos opened 7 years ago

sgeos commented 7 years ago

The with statement in Sentinel.Controllers.Html.AuthController.new_user() has no else clause. This leads to the following exceedingly cryptic error message if AfterRegistrator.confirmable_and_invitable() or RegistratorHelper.callback() fails to return {:ok, user}.

expected action/2 to return a Plug.Conn, all plugs must receive a connection (conn) and return a connection