summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-07-26 18:35:15 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-07-26 18:36:04 +0200
commit656985bf75ff2a3fd2c0f8eb88fa78847a529980 (patch)
tree9de850119b2cffb16b6905dce81ed9cbdb60b453 /lib
parent0da5c588b1d7f3bf16f535d1f29d721aa19bd142 (diff)
downloadgitlab-ce-656985bf75ff2a3fd2c0f8eb88fa78847a529980.tar.gz
Make authentication metrics events explicit is specs
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/auth/activity.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/auth/activity.rb b/lib/gitlab/auth/activity.rb
index 334c4794ea7..d364124d74e 100644
--- a/lib/gitlab/auth/activity.rb
+++ b/lib/gitlab/auth/activity.rb
@@ -12,9 +12,9 @@ module Gitlab
user_not_found: 'Counter of total failed log-ins when user is unknown',
user_password_invalid: 'Counter of failed log-ins with invalid password',
user_session_override: 'Counter of manual log-ins and sessions overrides',
+ user_session_destroyed: 'Counter of total user sessions being destroyed',
user_two_factor_authenticated: 'Counter of two factor authentications',
- user_blocked: 'Counter of total sign in attempts when user is blocked',
- user_signed_out: 'Counter of total user sign out events'
+ user_blocked: 'Counter of total sign in attempts when user is blocked'
}.freeze
def initialize(user, opts)
@@ -50,8 +50,8 @@ module Gitlab
end
end
- def user_signed_out!
- self.class.user_signed_out_counter_increment!
+ def user_session_destroyed!
+ self.class.user_session_destroyed_counter_increment!
end
def self.each_counter