Commit 2fac131c authored by o@immerda.ch's avatar o@immerda.ch
Browse files

fix exception on empty credentials

parent 4f00878b
......@@ -82,7 +82,7 @@ class SessionsController < ApplicationController
return login_failed
end
if login_user_id.empty? || params[:password].empty?
if !login_user_id.present? || !params[:password].present?
return new_login_session
end
......
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