Set OmniAuth on failure config

This commit is contained in:
Alex Sherman 2020-09-25 13:20:27 +05:00
parent d256aa357e
commit 227c2f100d
9 changed files with 64 additions and 60 deletions

View file

@ -2,6 +2,8 @@ require 'tampering_detected'
class Registrar
class TaraController < ApplicationController
skip_authorization_check
rescue_from Errors::TamperingDetected do
redirect_to root_url, alert: t('auth.tara.tampering')
end