Compare commits
3 Commits
116197e9fb
...
be0eebdb8b
| Author | SHA1 | Date | |
|---|---|---|---|
| be0eebdb8b | |||
| 8caee2ec22 | |||
| fe51d69700 |
@@ -3383,6 +3383,14 @@ async def api_security_reset():
|
|||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
errors.append(f"keyring wipe: {exc}")
|
errors.append(f"keyring wipe: {exc}")
|
||||||
|
|
||||||
|
# The user performed a full security reset — the banner's purpose is served.
|
||||||
|
try:
|
||||||
|
os.makedirs(os.path.dirname(SECURITY_BANNER_DISMISSED_FLAG), exist_ok=True)
|
||||||
|
with open(SECURITY_BANNER_DISMISSED_FLAG, "w"):
|
||||||
|
pass
|
||||||
|
except OSError:
|
||||||
|
pass # Non-fatal
|
||||||
|
|
||||||
return {"ok": True, "new_password": new_free_password, "errors": errors}
|
return {"ok": True, "new_password": new_free_password, "errors": errors}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user