spree_auth_devise icon indicating copy to clipboard operation
spree_auth_devise copied to clipboard

Allow encryptors other than authlogic_sha512

Open tristanm opened this issue 9 years ago • 2 comments

Implements :encryptor config option which allows developers to set encryptors other than just authlogic_512. Any encryptor from Devise Encryptable should be able to be used, including custom encryptors, although I have only tested authlogic_512 and bcrypt.

The default has been left as authlogic_512 to remain compatible with existing apps. However, all specs pass when the default is changed to bcrypt.

Specs only check for the inclusion (or not) of Devise::Models::Encryptable and the value of Devise::Models::Encryptable#encryptor. I figure any other functional tests to do with the encryptors belong with the encryptors themselves in Devise. That said, let me know if there's anything else which needs to be tested.

tristanm avatar Sep 10 '15 08:09 tristanm

Travis is failing because mysql2 isn't in Gemfile... anything I should do for this?

tristanm avatar Sep 10 '15 09:09 tristanm

@tristanm Pease rebase against current master, thanks in advance!

kushniryb avatar Jun 22 '18 12:06 kushniryb