cookies.delete(autologin_cookie_name)
self.logged_user = nil
set_localization
- render_error :status => 422, :message => "Invalid form authenticity token."
+ render_error :status => 422, :message => l(:error_invalid_authenticity_token)
end
end
def query_statement_invalid(exception)
logger.error "Query::StatementInvalid: #{exception.message}" if logger
session.delete(:issue_query)
- render_error "An error occurred while executing the query and has been logged. Please report this error to your Redmine administrator."
+ render_error l(:error_query_statement_invalid)
end
# Renders a 204 response for successful updates or deletions via the API
error_filename_required: "Filename required"
error_invalid_size_parameter: "Invalid size parameter"
error_attachment_not_found: "Attachment %{name} not found"
+ error_invalid_authenticity_token: "Invalid form authenticity token."
+ error_query_statement_invalid: "An error occurred while executing the query and has been logged. Please report this error to your Redmine administrator."
mail_subject_lost_password: "Your %{value} password"
mail_body_lost_password: 'To change your password, click on the following link:'