chore: Make super admin auth error readable (#8406)

- Remove the cryptic error for super admin auth and make it more readable
This commit is contained in:
Sojan Jose 2023-11-22 17:26:08 -08:00 committed by GitHub
parent 7efc2726d9
commit 4fc5f765de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,8 @@ class SuperAdmin::Devise::SessionsController < Devise::SessionsController
true
rescue StandardError => e
@error_message = e.message
Rails.logger.error e.message
@error_message = 'Invalid credentials. Please try again.'
false
end
end