Skip to content
Snippets Groups Projects
Unverified Commit 15773147 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Allowed + in emails (#5046)

parent a651fbee
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ class User < ApplicationRecord
length: { minimum: 2, maximum: 255 } # TODO: amir - Change into full_name or seperate first and last name.
validates :email,
format: /\A[\w\-.]+@[\w\-.]+\.[a-z]+\z/i,
format: /\A[\w\-.+]+@[\w\-.]+\.[a-z]+\z/i,
presence: true,
uniqueness: { case_sensitive: false, scope: :provider },
length: { minimum: 5, maximum: 255 }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment