mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-20 13:04:23 +02:00
Update __init__.py
This commit is contained in:
@@ -119,6 +119,13 @@ def wallet():
|
|||||||
wallet_id = request.args.get("wal")
|
wallet_id = request.args.get("wal")
|
||||||
wallet_name = request.args.get("nme")
|
wallet_name = request.args.get("nme")
|
||||||
|
|
||||||
|
if usr:
|
||||||
|
if not len(usr) > 20:
|
||||||
|
return redirect(url_for("home"))
|
||||||
|
if wallet_id:
|
||||||
|
if not len(wallet_id) > 20:
|
||||||
|
return redirect(url_for("home"))
|
||||||
|
|
||||||
# just usr: return a the first user wallet or create one if none found
|
# just usr: return a the first user wallet or create one if none found
|
||||||
# usr and wallet_id: return that wallet or create it if it doesn't exist
|
# usr and wallet_id: return that wallet or create it if it doesn't exist
|
||||||
# usr, wallet_id and wallet_name: same as above, but use the specified name
|
# usr, wallet_id and wallet_name: same as above, but use the specified name
|
||||||
|
Reference in New Issue
Block a user