Browse Source

Update app/controllers/users/sessions_controller.rb

Co-authored-by: Paul Robert Lloyd <paulrobertlloyd@users.noreply.github.com>
pull/119/head^2
Daniel Baark 4 years ago committed by GitHub
parent
commit
34ec5e3129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/controllers/users/sessions_controller.rb

2
app/controllers/users/sessions_controller.rb

@ -7,7 +7,7 @@ class Users::SessionsController < Devise::SessionsController
resource.errors.add :email, "Enter an email address in the correct format, like name@example.com"
end
if params.dig("user", "password").empty?
resource.errors.add :password, "Please enter password"
resource.errors.add :password, "Enter a password"
end
if resource.errors.present?
render :new, status: :unprocessable_entity

Loading…
Cancel
Save