Let users add a verified nostr pubkey to their account #101

Merged
raucao merged 14 commits from feature/98-nostr_nip05 into master 2023-06-16 13:04:24 +00:00
Showing only changes of commit beaafa5d7e - Show all commits

View File

@ -36,7 +36,7 @@ class User < ApplicationRecord
validates_length_of :display_name, minimum: 3, maximum: 35, allow_blank: true,
if: -> { defined?(@display_name) }
validates_uniqueness_of :nostr_pubkey, scope: :ou, allow_blank: true
validates_uniqueness_of :nostr_pubkey, allow_blank: true
scope :confirmed, -> { where.not(confirmed_at: nil) }
scope :pending, -> { where(confirmed_at: nil) }