Skip to content

Commit

Permalink
Require github.com email address
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhelmklopp authored Nov 30, 2017
1 parent 9be9c68 commit 8bb7cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions my_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
# The Proc/Block/Lambda will be provided three optional arguments. see
# https://github.com/benbalter/add-to-org#customizing-the-validator for
# additional information on how to configure the validation logic.
AddToOrg.set_validator do |user, verified_emails, client|
verified_emails.any? { |email| email[:email] =~ /\.gov\z/}
AddToOrg.set_validator do |github_user, verified_emails, client|
verified_emails.any? { |email| email[:email] =~ /@github\.com\z/ }
end

0 comments on commit 8bb7cb1

Please sign in to comment.