Class: UserManagementRails::LoginsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/user_management_rails/logins_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



5
6
7
8
9
10
11
# File 'app/controllers/user_management_rails/logins_controller.rb', line 5

def create
  if UserManagementRails.valid_jwt?(user_jwt)
    cookies[:jwt] = user_jwt
  else
    cookies.delete :jwt
  end
end