Commit graph

26 commits

Author SHA1 Message Date
Stefan Ceriu
881662b088 Added E2EE support on sessions created through QR code login 2022-10-13 20:49:32 +03:00
Stefan Ceriu
dcc9cf71c6 Implement login with scanned QR code flows 2022-10-12 17:27:25 +03:00
ismailgulek
19afad1f18
Login with QR UI components (#6790)
* Display QR button on login screen if HS supports

* Create start screen

* Add build flag

* Connect start screen to the login

* QR display screen

* Move `LabelledDividerView` into separate file

* Show display QR screen on button tap

* Add swift concurreny to CameraAccessManager

* Introduce `QRLoginServiceProtocol`

* Use new service in screens

* Introduce scan QR code screen

* Remove hardcoded service availability

* Remove unnecessary import

* Add confirmation screen

* Add loading screen

* Fix ZXingObjc targets

* Add failure screen

* Add strings

* Various UI tweaks, navigation according to the service state

* Fix tests

* Add string for invalid QR error

* Add QR login service mode
2022-10-06 18:05:46 +03:00
Stefan Ceriu
de54ae3da3 Removed deprecated StateStoreViewModel dispatching and reducing 2022-09-27 12:55:44 +03:00
Stefan Ceriu
ae73800352 Removed unnecessary comments from RiotSwiftUI templates, fixed StateStoreViewModel typealias formatting 2022-09-27 12:55:44 +03:00
Stefan Ceriu
ec0634ffb7 Configured and applied SwiftFormat 2022-09-27 12:55:44 +03:00
Doug
58dcf54c55 Tweak strings for FTUE. 2022-07-20 18:07:42 +01:00
Doug
e3bcb71b09 FTUE tweaks
- Allow login using a phone number.
- Update the server when entering a full MXID during registration.
- Reset the authentication service back to matrix.org after onboarding completes.
- Disable zoom on ReCaptcha to fix responsiveness issue.
- Tidy up unused methods.
2022-07-19 09:22:15 +01:00
Doug
34e82d3110 Prefix test in-front of UI test methods. 2022-07-18 16:06:27 +01:00
Doug
7263804f01 Update remaining strings for FTUE.
Include homeserver in view models/state as needed.
Pre-fill the user's display name as set by the server.
2022-07-14 16:56:35 +01:00
Doug
ec8100383f Update use case, registration and login screens.
Remove "Custom server" button from use case screen.
Remove matrix.org description.
Add username availability to registration screen.
2022-07-14 16:56:35 +01:00
Doug
13f4973786 Prevent login using keyboard when homeserver is loading. 2022-06-23 18:33:24 +01:00
Doug
83e2b1d440 Add custom string representations of view model/coordinator results. 2022-06-17 10:15:10 +01:00
ismailgulek
9aa501e8d3
Fix PR remarks 2022-06-02 00:30:28 +03:00
ismailgulek
d26526d8c6
Start forgot password flow 2022-06-01 18:59:33 +03:00
ismailgulek
a9886e4df3
Merge pull request #6210 from vector-im/ismail/6176_auth_fallback 2022-05-31 19:11:32 +03:00
ismailgulek
adb6afa051
Fix PR remarks 2022-05-30 19:56:23 +03:00
Doug
0c2a74ab76 Login/Registration screen tweaks
Scale SSO button icon with dynamic type.
Add an onCommit parameter to RoundedBorderTextField and use to submit instead of onEditingChanged.
2022-05-29 10:14:14 +01:00
ismailgulek
8b66812430
Show fallback on login screen 2022-05-27 17:51:54 +03:00
Doug
518434537a Report analytics from the new auth flow.
Fix SSO buttons pressed appearance.
2022-05-26 14:46:33 +01:00
Doug
d13a065c34 Add SSOAuthenticationPresenter to the AuthenticationCoordinator. 2022-05-25 14:48:18 +01:00
Doug
5a5abc5fa7 Add parameters to doc comments. 2022-05-25 09:48:52 +01:00
Doug
4ebcd7d7f0 Disable the next button whilst loading a server.
Add tests for login screen.
Self review.
2022-05-24 18:03:31 +01:00
Doug
b01fbecd88 Add AuthenticationHomeserverViewData to easily map AuthenticationState.Homeserver to a type in the SwiftUI target. 2022-05-24 15:47:25 +01:00
Doug
857cc8c69c Make the server selection coordinator aware of which flow it is for.
Don't set the authentication state until after registration has been queried to avoid using the wrong client if the user cancelled the selection.
2022-05-24 15:47:24 +01:00
Doug
0f12447748 Add login screen. 2022-05-24 15:47:24 +01:00