Skip to content

Commit

Permalink
Remove validation from username
Browse files Browse the repository at this point in the history
  • Loading branch information
user890104 committed Jan 18, 2024
1 parent ab92c0f commit 80b7579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class User < ApplicationRecord
has_many :phone_numbers, foreign_key: :owner_id, dependent: :destroy
has_many :oauth_applications, class_name: "Doorkeeper::Application", as: :owner

validates :username, uniqueness: {case_sensitive: false}, format: {with: /\A[a-z0-9_-]+\z/i}, presence: true
validates :username, uniqueness: {case_sensitive: false}, presence: true
validates :twitter, format: {with: /\A[A-Za-z0-9_]{1,15}\z/}, allow_blank: true
validates :url, format: {with: /\A(http|https):\/\/[a-z0-9]+([-.]{1}[a-z0-9]+)*\.[a-z-]{2,63}(:[0-9]{1,5})?(\/.*)?\z/ix}, allow_blank: true
validates :name, presence: true
Expand Down

0 comments on commit 80b7579

Please sign in to comment.