mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 16:51:36 +02:00
update btc address
This commit is contained in:
parent
1e59bab1eb
commit
8331cb85b5
3 changed files with 12 additions and 8 deletions
|
@ -129,7 +129,16 @@ post '/create' do
|
|||
})
|
||||
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?
|
||||
@site.send_email(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue