You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: authentication.rb
    path of file: ./repos/revise_auth/lib/revise_auth
    
    the code of the file until where you have to start completion: module ReviseAuth
  
    
    def login(user)
      user_return_to = session[:user_return_to]
      reset_session
      Current.user = user
      session[:user_id] = user.id
      session[:user_return_to] = user_return_to
    end