app/controllers/tramway/auth/web/sessions_controller.rb in tramway-auth-1.0.1 vs app/controllers/tramway/auth/web/sessions_controller.rb in tramway-auth-1.0.1.1

- old
+ new

@@ -6,10 +6,10 @@ def new @session_form = ::Tramway::Auth::SessionForm.new ::Tramway::User::User.new end def create - @session_form = ::Tramway::Auth::SessionForm.new ::Tramway::User::User.find_or_initialize_by email: params[:user][:email] + @session_form = ::Tramway::Auth::SessionForm.new ::Tramway::User::User.active.find_or_initialize_by email: params[:user][:email] if @session_form.validate params[:user] sign_in @session_form.model redirect_to ::Tramway::Auth.root_path else render :new