v0.333.0: the file manager's own token ends with the dashboard sign-out (R-1155); the recovery-code page says the code becomes live after the check (R-1161)
gates / gates (push) Successful in 49s

This commit is contained in:
2026-10-19 11:30:59 +02:00
parent a741bc1d0f
commit c809dd3bc6
10 changed files with 172 additions and 8 deletions
@@ -85,7 +85,8 @@
<div id="reveal-error" class="alert alert-error" style="display:none;margin-top:.75rem"></div>
</div>
<div id="reveal-shown" style="display:none">
<div class="alert alert-warning" style="margin-bottom:.5rem">{{T "backups_escrow.ez_mostantol_az_elo_helyreallitasi"}}</div>
<div class="alert alert-warning" id="live-after-check" style="margin-bottom:.5rem">{{T "backups_escrow.ez_a_kod_az_ellenorzes"}}</div>
<div class="alert alert-warning" id="live-now" style="display:none;margin-bottom:.5rem">{{T "backups_escrow.ez_mostantol_az_elo_helyreallitasi"}}</div>
<pre class="mono" id="code-block" style="white-space:pre-wrap;word-break:break-all;background:var(--bg-0);border:1px solid var(--line);border-radius:var(--radius);padding:1rem;font-size:1.05rem"></pre>
<button type="button" class="btn btn-ghost btn-sm" id="code-blur-toggle" onclick="toggleCodeBlur()">{{T "backups_escrow.elrejtes"}}</button>
<h3 style="margin-top:1.25rem">{{T "backups_escrow.6_ellenorzes"}}</h3>
@@ -258,6 +259,9 @@ async function claimCode(){
var words=claimedR.split('-');
var n=words.length;
confirmRequired=!!j.data.confirm_required;
// R-1161: an agent >= 0.160.0 keeps the old code until the two words come back; an older agent stored the new
// package at the claim, so for it the code is live already.
if(!confirmRequired){ document.getElementById('live-after-check').style.display='none'; document.getElementById('live-now').style.display='block'; }
if(confirmRequired){ verifyIdx=[j.data.verify_positions[0], j.data.verify_positions[1]]; }
else {
var a=1+Math.floor(Math.random()*n), b=1+Math.floor(Math.random()*n);