Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-24 18:09:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-24 18:09:51 +0300
commita17eb314cff10a779ef550b1eb203ec9a61afdb9 (patch)
treea0dca3d550ff6d4bafb25093277861ed3ba47c88 /app/models/authentication_event.rb
parent6f15c2c2723dbe14e907379b75201e2ef70a48d3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/authentication_event.rb')
-rw-r--r--app/models/authentication_event.rb1
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,