Skip to content

Commit 2d3b67a

Browse files
authored
Use the SsoCookie user_hash method in user_session_management (#1673)
1 parent 26916e2 commit 2d3b67a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/user_session_management.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ def sign_in!(user, security_log_data = {})
5252
session[:last_admin_activity] = DateTime.now.to_s if @current_user.is_administrator?
5353

5454
# Set the SSO cookie
55-
user_hash = Api::V1::UserRepresenter.new(@current_user).to_hash
56-
sso_cookie_jar.subject = user_hash
55+
sso_cookie_jar.subject = SsoCookie.user_hash(@current_user)
5756

5857
security_log :sign_in_successful, security_log_data
5958
end

0 commit comments

Comments
 (0)