mirror of
https://git.wownero.com/lza_menace/suchwow.git
synced 2024-08-15 01:03:19 +00:00
prevent posting if wallet account is being reused
This commit is contained in:
parent
af87610e60
commit
8c546a07eb
1 changed files with 4 additions and 0 deletions
|
@ -87,6 +87,10 @@ def create():
|
|||
try:
|
||||
wallet = wownero.Wallet()
|
||||
account_index = wallet.new_account()
|
||||
in_use = Post.select().where(Post.account_index == account_index).first()
|
||||
if in_use:
|
||||
flash("Suchwow wallet is fucked up! Try again later.", "is-danger")
|
||||
return redirect(request.url)
|
||||
except:
|
||||
flash("Suchwow wallet is fucked up! Try again later.", "is-danger")
|
||||
return redirect(request.url)
|
||||
|
|
Loading…
Reference in a new issue