Skip to content

Commit

Permalink
add email verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankit-Singla committed Jan 30, 2018
1 parent 53f3f61 commit 7b41e61
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 < ActiveRecord::Base

acts_as_authentic do |c|
c.openid_required_fields = %i(nickname email)
c.validates_format_of_email_field_options = { with: /\A[\w+-.]+@[a-z\d-.]+.[a-z]+\z/i }
c.validates_format_of_email_field_options = { with: /\A[-\w+.]+@[\da-z-.]+.[a-z]+\z/ }
c.crypto_provider = Authlogic::CryptoProviders::Sha512
end

Expand Down

0 comments on commit 7b41e61

Please sign in to comment.