mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
Fix url_for crash in rpcpasswordaspin login when Bitcoin Core is unreachable (#2525)
Co-authored-by: Nazim <al-munazzim@users.noreply.github.com>
This commit is contained in:
parent
5743b58035
commit
4e65eced3c
1 changed files with 2 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ def login_method_rpcpasswordaspin():
|
|||
flash(
|
||||
"No RPC connection to Bitcoin Core found. Cannot Log you in.", "error"
|
||||
)
|
||||
return redirect(url_for("login"))
|
||||
return redirect(url_for("auth_endpoint.login"))
|
||||
conf = confs[0]
|
||||
rpc = BitcoinRPC(**conf)
|
||||
|
||||
|
|
@ -101,7 +101,7 @@ def login_method_rpcpasswordaspin():
|
|||
flash(
|
||||
"It seems that there is no working RPC connection to Bitcoin Core. Cannot Log you in."
|
||||
)
|
||||
return redirect(url_for("login"))
|
||||
return redirect(url_for("auth_endpoint.login"))
|
||||
orig_password = rpc.password
|
||||
rpc.password = request.form["password"]
|
||||
if rpc.password == request.form["password"] and rpc.test_connection():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue