Skip to content

Commit 937f0c9

Browse files
authored
Merge pull request #13 from modalsource/olegbliaher-postal-logwebauthfailure
Replica: app/controllers/sessions_controller.rb: Log failed webgui login attempts
2 parents 3797ebc + 3133738 commit 937f0c9

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)