I'd like to allow multiple users with the same email to be created, using devise-token-auth.
Rather than this error being thrown.
@details={:email=>[{:error=>:taken, :value=>"testttt@gmail.com"}]}>
I expected that removing devise :validatable
from user.r
b would have worked, but it did not.
user.rb
class User < ActiveRecord::Base
extend Devise::Models
include DeviseTokenAuth::Concerns::User
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable
end
I found this a similar SO question from years ago, but the suggestions did not work.
I'm wondering if this is specifically a devise-token-auth issue, rather than devise.
Has anyone solved this before?