zanderxyz / veil

Simple passwordless authentication for your Phoenix apps
MIT License
166 stars 15 forks source link

Fix assigning of :veil_user in generated Plugs.Veil.User #21

Closed optikfluffel closed 5 years ago

optikfluffel commented 5 years ago

If I'm not mistaken Veil.get_user/1 just calls Veil.Cache.get_or_update/3, which returns an {:ok, value} tuple, so we should correctly handle this in the generated MyAppWeb.Plugs.Veil.User file.

zanderxyz commented 5 years ago

Thanks!