Nexusoft / LLL-TAO

LLL: Lower Level Library - TAO: Tritium, Amine, and Obsidian as a high performance application framework
MIT License
60 stars 28 forks source link

Recover account when password / pin forgotten #154

Closed Brad241 closed 7 months ago

Brad241 commented 12 months ago

Private node running on the latest merging commit (fb70bf65818e82aa6d966681c2d03ea0800b76a0)

This issue was experienced when recovering accounts that have forgotten their password or pin.

Note: I tested the resetting of passwords / pins / recovery phrases when the user is logged in and it worked fine – this only appears to happen when the user is not logged in and hasn’t accessed their account in a while. I've tested with a few accounts: one hadn’t been accessed in 3 months and the other had logged in (and logged out) a few minutes before I ran the test.

The issue only occurred when the user had not logged in for a while. When the recovery phrase is used to reset the password / pin the following error message was received:

Raw error: {"error":{"code":-32,"message":"Failed to accept. \u001b[1mAccept\u001b[0m : CONFLICT: hash last mismatch 01472dda01786820a7c9 and 014b61995eaae0b87f52"},"info":{"method":"profiles/recover","status":"active","address":"35.86.123.106:39098","latency":"3901.299293 ms"}}

Brad241 commented 12 months ago

Another issue found with the latest commit is related to creating a token account shortly after creating a new profile - the following error message is received:

Nexus - Finance API: create/account just returned an error (HTTP 400). Please contact the plugin author directly for feedback. Raw error: {"error":{"code":-32,"message":"Failed to accept. \u001b[1mAccept\u001b[0m : CONFLICT: prev tx CLAIMED 0169b262716124884a23"},"info":{"method":"finance/create","status":"active","address":"34.222.212.227:57888","latency":"1260.553221 ms"}}

VidereLicet commented 7 months ago

Fixed with commit fa4213396f4dbe52402b8f3eec57d74cb2890d4f