18F/identity-idp

View on GitHub
app/controllers/account_reset/confirm_delete_account_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module AccountReset
  class ConfirmDeleteAccountController < ApplicationController
    def show
      email = flash[:email]
      if email.blank?
        redirect_to root_url
      else
        render :show, locals: { email: email }
      end
    end
  end
end