Commit Graph

23 Commits

Author SHA1 Message Date
Pete Walters
b1c3c14e68
Add dev-only backup restore option for registraion flow. 2024-03-29 19:18:06 -05:00
Harry
cc436e0db8
Support registering with a landline 2023-08-03 09:42:07 -07:00
Harry
bace13aabb
Add logging and explicit error message for registration 3p service errors 2023-05-12 16:59:40 -07:00
Evan Hahn
16d642fb83 Fix compile error with registration enum
I accidentally introduced this in
4bf5f44be1.
2023-04-03 14:39:50 -05:00
Evan Hahn
4bf5f44be1
Rename enum case in new registration
This change should have no user impact. All it does is rename
`.pinAttemptsExhaustedAndMustCreateNewPin` to
`.pinAttemptsExhaustedWithoutReglock`.
2023-04-03 11:24:24 -07:00
Evan Hahn
e938ddb591
Add more debug logging for new registration 2023-03-28 21:08:06 -05:00
Harry
3a78f30ed9
Registration cleanup
* Don't wipe local kbs state when kbs stuff fails for change number; its still valid for the old number

* remove remaining error sheet todos

* fix tests
2023-03-28 14:23:41 -07:00
Harry
7ba5f7384a
Handle being de-registered while still in the middle of registration
* put rereg mode params into a struct for sharability

* add step and UI handling for when we become deregistered during post-reg steps

* handle dereg when syncing push tokens

* show generic error on kbs backup failure

* handle dereg when restoring from kbs

* handle dereg during profile setup steps

* finalize pni stuff before deregistering

* add comment

* change debug fail to log

* Navigate to verification vc before showing popup so that we don't cancel the nav controller pop

* send a session sms code even if we get interrupted right after session creation

* improve state handling for initial session sms code

* nit: make var fileprivate

* show error when state changed on screen
2023-03-28 07:50:56 -07:00
Harry
545dffd408
New registration: don't say you can continue with new PIN when you can't 2023-03-28 08:04:22 -05:00
Harry
02388aac62
Clarification for already handled error cases for new registration
* update comment for reg recovery pw create account handling

* handle prekey generation failure
2023-03-27 16:29:15 -07:00
Evan Hahn
f008d084c7
New registration: show screen when PIN guesses exhausted outside reglock 2023-03-27 15:20:29 -05:00
Harry
76b31992b2
Collected nits from registration PR stack
* nits

* remove obsolete assert
2023-03-24 19:40:58 -07:00
Harry
4ee467be2b
Add screens unique to change number to new registration flow
* Add splash controller for change number flow

* Add copy of change number phone number entry controller

* add copy of change number confirmation view controller

* hook up change number phone number entry screens

* fix header color

* fix change number error view

* add some spacing before error label

* run auto genstrings

* actually fix string comment
2023-03-24 12:32:59 -07:00
Evan Hahn
faa8569d4a
Show generic errors in new registration
I also found a few spots where I failed to identify network errors in
366c08ac1b. This updates those.
2023-03-15 17:38:41 -05:00
Evan Hahn
366c08ac1b Show UI for registration network errors 2023-03-15 16:15:50 -05:00
Evan Hahn
f415335d1b
Add (dormant) reglock timeout screen 2023-03-15 15:41:36 -05:00
Pete Walters
f857ae62c7
Update registration UI for phone number discoverability 2023-03-13 18:30:34 -05:00
Harry
38cba70b85
Hook up new registration PIN entry screen 2023-02-23 09:50:17 -08:00
Harry
66b1f1e9ad
Hook up RegistrationPhoneNumberDiscoverabilityViewController 2023-02-21 11:53:32 -08:00
Harry
f5bdd6bafa
Hook up RegistrationVerificationViewController
* Hook up RegistrationVerificationViewController

* Fix existing tests

* add new test cases

* pr comments
2023-02-21 08:37:08 -08:00
Harry
dc1ac4fc8b
Hook up RegistrationPhoneNumberViewController
* Hook up RegistrationPhoneNumberViewController

* Fix existing tests

* add some new tests; fix test scaffolding bug

* Show an error before going back to phone number entry if the session is invalidated
2023-02-21 07:46:56 -08:00
Harry
798ad6dc67
Hook up RegistrationPermissionsViewController
* Hook up RegistrationPermissionsViewController

* Update tests accordingly

* rebase woes

* Simplify opening path testing in RegistrationCoordinatorTest
2023-02-17 16:31:13 -08:00
Harry
3d6225060d
Add RegistrationCoordinator
* Add ability to compute registration recovery password

* Add RegistrationCoordinator

* remove repeat nav controller that evan added

* Scaffolding for RegistrationCoodinator test

* Add first round of RegistrationCoordinator tests, some stuff I needed to get them working, and some fixes to RegistrationCoordinator itself I discovered thanks to the tests

* switch to owsFailBeta

* Add auth credential candidate flow tests, related fixes and additions to coordinator and friends

* Add tests for session based registration path and associated fixes

* PR comment nits
2023-02-14 08:50:24 -08:00