I am using Devise to handle registration process.
How can I create a duplicate account via ajax on another site using the same credentials?
I can overwrite Registration controller, but don't know how to get unencrypted password.
You need to override the Devise Registration Controller.
On the create
method, get the user input, send it to your other website, then call super
to handle registration by devise.
You certainly want to send datas to other website through an API, because of the CSRF protection.