element-hq / element-ios

A glossy Matrix collaboration client for iOS
https://element.io
Apache License 2.0
1.72k stars 479 forks source link

An error is reported when using a security key to authenticate a session under certain conditions. #7647

Open YamatoRyou opened 11 months ago

YamatoRyou commented 11 months ago

Steps to reproduce

  1. Login to the server (self-hosted);
  2. Enter settings from "User Settings";
  3. Security -> Restore from Backup;
  4. At this point select the security key from the iPhone;
  5. Click "Use Key".

Outcome

What did you expect?

n/a

What happened instead?

An error will be returned at this point. Click "Back" or "Cancel", then click "Use Key" again, and the verification is passed. {BE86E707-9123-10CE-AEB3-ECDAF5E67AF6}

This problem is not serious, if the verification is completed through the pop-up guide of the app immediately after login (also using the security key in the above steps), this problem will not occur.

Your phone model

iPhone 7 Plus

Operating system version

iOS 15.6.1

Application version

Element iOS 1.11.0

Homeserver

Synapse 1.90.0

Will you send logs?

No