title: how to disable automatic sign-in after sign-up in Devise
body: <p>I have struggling with this for hours now. I have looked at many solutions online but none seem to be working for me. </p>
  
  <p>I have a class, Admin, that registers Users. Users can not sign up themselves. However, after an Admin creates a User, Devise automatically creates a session for that user, effectively having a User and an Admin logged in at once! </p>
  
  <p>I have tried, among others, these solutions:
  <a href="https://stackoverflow.com/questions/12541224/rails-devise-prevent-login-immediately-after-signup-without-using-confirmable">Rails Devise prevent login immediately after Signup without using Confirmable</a>
  <a href="https://stackoverflow.com/questions/3546289/override-devise-registrations-controller">Override devise registrations controller</a></p>
  
  <p>However, they do not make a difference</p>
  
  <p>Here is the pertinent part of <code>rake routes</code></p>
  
  <pre><code>     new_user_session GET    /users/sign_in(.:format)          devise/sessions#new
             user_session POST   /users/sign_in(.:format)          devise/sessions#create
     destroy_user_session DELETE /users/sign_out(.:format)         devise/sessions#destroy
            user_password POST   /users/password(.:format)         devise/passwords#create
        new_user_password GET    /users/password/new(.:format)     devise/passwords#new
       edit_user_password GET    /users/password/edit(.:format)    devise/passwords#edit
                          PATCH  /users/password(.:format)         devise/passwords#update
                          PUT    /users/password(.:format)         devise/passwords#update
  cancel_user_registration GET    /users/cancel(.:format)           devise/registrations#cancel
        user_registration POST   /users(.:format)                  devise/registrations#create
    new_user_registration GET    /users/sign_up(.:format)          devise/registrations#new
   edit_user_registration GET    /users/edit(.:format)             devise/registrations#edit
                          PATCH  /users(.:format)                  devise/registrations#update
                          PUT    /users(.:format)                  devise/registrations#update
                          DELETE /users(.:format)                  devise/registrations#destroy
                    users GET    /users(.:format)                  users#index
                          POST   /users(.:format)                  users#create
                 new_user GET    /users/new(.:format)              users#new
                edit_user GET    /users/:id/edit(.:format)         users#edit
                     user GET    /users/:id(.:format)              users#show
                          PATCH  /users/:id(.:format)              users#update
                          PUT    /users/:id(.:format)              users#update
                          DELETE /users/:id(.:format)              users#destroy
  </code></pre>