Show location and ISP in sign in from new location email
Uses geocoder gem to get city, country code and ISP name from given IP address. Uses i18n_data gem to transform country code to country name, e.g. JP to Japan. Location and ISP info is displayed in the sign in notification email when found, see http://gdk.local:3000/rails/mailers/notify/unknown_sign_in_email.html Changelog: added MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/163914
显示
- Gemfile 2 个添加, 0 个删除Gemfile
- Gemfile.lock 1 个添加, 0 个删除Gemfile.lock
- Gemfile.next.lock 1 个添加, 0 个删除Gemfile.next.lock
- app/controllers/concerns/known_sign_in.rb 7 个添加, 1 个删除app/controllers/concerns/known_sign_in.rb
- app/mailers/emails/profile.rb 3 个添加, 1 个删除app/mailers/emails/profile.rb
- app/mailers/previews/notify_preview.rb 1 个添加, 1 个删除app/mailers/previews/notify_preview.rb
- app/services/notification_service.rb 1 个添加, 1 个删除app/services/notification_service.rb
- app/views/notify/unknown_sign_in_email.html.haml 8 个添加, 1 个删除app/views/notify/unknown_sign_in_email.html.haml
- app/views/notify/unknown_sign_in_email.text.haml 4 个添加, 1 个删除app/views/notify/unknown_sign_in_email.text.haml
- lib/gitlab/auth/visitor_location.rb 34 个添加, 0 个删除lib/gitlab/auth/visitor_location.rb
- locale/gitlab.pot 3 个添加, 0 个删除locale/gitlab.pot
- spec/lib/gitlab/auth/visitor_location_spec.rb 45 个添加, 0 个删除spec/lib/gitlab/auth/visitor_location_spec.rb
- spec/mailers/emails/profile_spec.rb 19 个添加, 4 个删除spec/mailers/emails/profile_spec.rb
- spec/services/notification_service_spec.rb 7 个添加, 4 个删除spec/services/notification_service_spec.rb
加载中
想要评论请 注册 或 登录