# frozen_string_literal: true

class Users::RegistrationsController < Devise::RegistrationsController
  def create
    if params[:sns_auth] == 'true'
      pass = Devise.friendly_token
      params[:user][:password] = pass
      params[:user][:password_confirmation] = pass
    end
    super
  end
end
