update btc address

This commit is contained in:
Kyle Drake 2024-09-06 09:45:40 -05:00
parent 1e59bab1eb
commit 8331cb85b5
3 changed files with 12 additions and 8 deletions

View file

@ -129,7 +129,16 @@ post '/create' do
}) })
end end
@site.save begin
@site.save
rescue Sequel::UniqueConstraintViolation => e
if e.message =~ /username.+already exists/
flash[:error] = 'Username already exists.'
return {result: 'error'}.to_json
end
raise e
end
unless education_whitelisted? unless education_whitelisted?
@site.send_email( @site.send_email(

Binary file not shown.

Before

Width:  |  Height:  |  Size: 387 B

View file

@ -34,13 +34,8 @@
--> -->
<h3>Bitcoin:</h3> <h3>Bitcoin:</h3>
<p><img src="/img/bitcoin.png"></p> <p><b><a href="bitcoin:3HPuhRTz4fMyMRaLFHEQ5E2rrxGic8CXJQ">3HPuhRTz4fMyMRaLFHEQ5E2rrxGic8CXJQ</a></b></p>
<p><b><a href="bitcoin:1MPYyfoWK8CkAzhLzLLtZGa9dwEGT5dm2T">1MPYyfoWK8CkAzhLzLLtZGa9dwEGT5dm2T</a></b></p>
<h3>Filecoin</h3>
<p><b>f1tub53j4dglc5bcgn2djaqljfkphiw6dem67ev2a</b></p>
<p><a href="https://filecoin.io">(more info about Filecoin)</a></p>
<h4 style="margin-top: 30px; margin-bottom: 30px">Thanks. You are great! <a href="/#new">Now go and make an awesome web site!</a></h4> <h4 style="margin-top: 30px; margin-bottom: 30px">Thanks. You are great! <a href="/#new">Now go and make an awesome web site!</a></h4>
</article> </article>
</div> <!-- end .content --> </div>