Skip to content

Commit 3133738

Browse files
olegbliaherOleg Bliaher
authored andcommitted
app/controllers/sessions_controller.rb: Log failed webgui login attempts
1 parent fd3c7cc commit 3133738

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/controllers/sessions_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def create
1212
flash[:remember_login] = true
1313
redirect_to_with_return_to root_path
1414
rescue Postal::Errors::AuthenticationError
15+
Postal.logger.error "Invalid credentials for #{request.remote_ip}", component: "postal-web"
1516
flash.now[:alert] = "The credentials you've provided are incorrect. Please check and try again."
1617
render "new"
1718
end

0 commit comments

Comments
 (0)