diff --git a/app/models/user.rb b/app/models/user.rb index 96dcaaa76..1d9b553cf 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -131,7 +131,7 @@ class User < ApplicationRecord validates :following_orgs_count, presence: true validates :following_tags_count, presence: true validates :following_users_count, presence: true - validates :name, length: { in: 1..100 } + validates :name, length: { in: 1..100 }, presence: true validates :password, length: { in: 8..100 }, allow_nil: true validates :payment_pointer, format: PAYMENT_POINTER_REGEXP, allow_blank: true validates :rating_votes_count, presence: true diff --git a/app/views/users/_errors.html.erb b/app/views/users/_errors.html.erb index 85a4553e1..3704e0b53 100644 --- a/app/views/users/_errors.html.erb +++ b/app/views/users/_errors.html.erb @@ -1,7 +1,7 @@