Commit 2fac131c authored by's avatar
Browse files

fix exception on empty credentials

parent 4f00878b
......@@ -82,7 +82,7 @@ class SessionsController < ApplicationController
return login_failed
if login_user_id.empty? || params[:password].empty?
if !login_user_id.present? || !params[:password].present?
return new_login_session
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment