mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 01:24:56 +02:00
validate all types of btc addresses with tipper
This commit is contained in:
parent
7b7b3c05e1
commit
f78775fb3f
4 changed files with 8 additions and 50 deletions
|
@ -1119,7 +1119,7 @@ class Site < Sequel::Model
|
|||
errors.add :tipping_paypal, 'A valid PayPal tipping email address is required.'
|
||||
end
|
||||
|
||||
if !values[:tipping_bitcoin].blank? && !BitcoinValidator.valid_address?(values[:tipping_bitcoin])
|
||||
if !values[:tipping_bitcoin].blank? && !AdequateCryptoAddress.valid?(values[:tipping_bitcoin], 'BTC')
|
||||
errors.add :tipping_bitcoin, 'Bitcoin tipping address is not valid.'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue