refinery / refinerycms-authentication-devise

Devise based authentication extension for Refinery CMS
MIT License
17 stars 61 forks source link

Devise :async #21

Closed sintro closed 4 years ago

sintro commented 8 years ago

What is a best way to add :async option in User's model devise call? Should I override whole the call from decorator, like:

devise :database_authenticatable, :registerable, :recoverable, :rememberable,
                 :trackable, :validatable, authentication_keys: [:login], :async
bricesanchez commented 8 years ago

Using decorator is probably the best option. Let me know if it works.

sintro commented 8 years ago

I will test later, if it works. Actually, now there are no "confirmable" option in User model, so the :async option is almost useless without it (it only needed to send the emails, and now the only way to send the email from Refinerys User controller is to make the password recovery). So I will try to add both this options and let you know. The main interest for me now is to make both administrators and front-end users be powered by Refinery::Authentication::Devise::User model... Dont sure if it is a good idea, or may be it is better to have two separate devise models.

parndt commented 8 years ago

In the past I've generated a new extension for front end users, as it only took an hour or so to get set up