Skip to content

Commit

Permalink
chore: Make super admin auth error readable (#8406)
Browse files Browse the repository at this point in the history
- Remove the cryptic error for super admin auth and make it more readable
  • Loading branch information
sojan-official committed Nov 23, 2023
1 parent 7efc272 commit 4fc5f76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/super_admin/devise/sessions_controller.rb
Expand Up @@ -27,7 +27,8 @@ def valid_credentials?

true
rescue StandardError => e
@error_message = e.message
Rails.logger.error e.message
@error_message = 'Invalid credentials. Please try again.'
false
end
end

0 comments on commit 4fc5f76

Please sign in to comment.