Closed GildedHonour closed 8 years ago
O just found this, it helped me. Hope it helps. https://hexdocs.pm/guardian/Guardian.Plug.html#authenticated?/1
Hi @GildedHonour, have you looked at Guardian.Plug.EnsureAuthenticated
?
https://github.com/ueberauth/guardian#guardianplugensureauthenticated
Thanks. It doesn't support password recovering, email confirmations, locking users and so on?
@GildedHonour that functionality isn't provided by Guardian. If you're familiar with the Ruby ecosystem Guardian is akin to Warden upon which Devise (and others) are built.
@doomspork what do you recommend to use as alternive of devise gem from Rails?
@GildedHonour as far I as know no one has built something like Devise for Elixir. For my use-cases I roll my own functionality.
Thanks.
After a user signed in:
how do I check on if they are authenticated in other places? Say, a page "users/secret_page" is avaialble only for authenticated users. When a user comes to that page, how do I check if they're authenticated?