Skip to content

Commit

Permalink
allow single quote inside email field (bigbluebutton#2187)
Browse files Browse the repository at this point in the history
Co-authored-by: romainnakedcat <[email protected]>
  • Loading branch information
2 people authored and Rangga Permana committed Jun 29, 2021
1 parent e929637 commit 1d6f21f
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 @@ -41,7 +41,7 @@ class User < ApplicationRecord
validate :check_if_email_can_be_blank
validates :email, length: { maximum: 256 }, allow_blank: true,
uniqueness: { case_sensitive: false, scope: :provider },
format: { with: /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i }
format: { with: /\A[\w+\-\'.]+@[a-z\d\-.]+\.[a-z]+\z/i }

validates :password, length: { minimum: 6 }, confirmation: true, if: :greenlight_account?, on: :create

Expand Down

0 comments on commit 1d6f21f

Please sign in to comment.