diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-24 18:09:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-24 18:09:51 +0300 |
commit | a17eb314cff10a779ef550b1eb203ec9a61afdb9 (patch) | |
tree | a0dca3d550ff6d4bafb25093277861ed3ba47c88 /app/models/authentication_event.rb | |
parent | 6f15c2c2723dbe14e907379b75201e2ef70a48d3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/authentication_event.rb')
-rw-r--r-- | app/models/authentication_event.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/authentication_event.rb b/app/models/authentication_event.rb index 16b132c7ed5..ac6e08caf50 100644 --- a/app/models/authentication_event.rb +++ b/app/models/authentication_event.rb @@ -6,6 +6,7 @@ class AuthenticationEvent < ApplicationRecord belongs_to :user, optional: true validates :provider, :user_name, :result, presence: true + validates :ip_address, ip_address: true enum result: { failed: 0, |