Add mandatory new parameter for remote_ip to Log.log
This commit is contained in:
parent
150bd5df3e
commit
fe5655e6d5
2 changed files with 5 additions and 5 deletions
|
|
@ -3,7 +3,7 @@ class Users::MySessionsController < Devise::SessionsController
|
|||
|
||||
# Hook after successful login
|
||||
def after_login
|
||||
Log.log "User #{current_user} logged in."
|
||||
Log.log "User #{current_user.email} logged in.", @remote_ip
|
||||
old_screenshots = session[:uploaded_screenshots]
|
||||
if old_screenshots.to_a.length > 0
|
||||
old_screenshots.each do |id|
|
||||
|
|
@ -14,7 +14,7 @@ class Users::MySessionsController < Devise::SessionsController
|
|||
end
|
||||
# The message is probably confusing. Just add the screenshots.
|
||||
# flash[:info] = "#{old_screenshots.to_a.length} uploads have been added to your account"
|
||||
Log.log "Anonymously uploaded screenshots #{old_screenshots} added to #{current_user}."
|
||||
Log.log "Anonymously uploaded screenshots #{old_screenshots} added to #{current_user.email}.", @remote_ip
|
||||
session[:uploaded_screenshots] = nil
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue